serenity icon indicating copy to clipboard operation
serenity copied to clipboard

RequestServer: Transfer ownership of Protocols to all_protocols map

Open ADKaster opened this issue 2 years ago • 0 comments

It's no change in application behavior to have these objects owned by the function-scope static map in Protocol.cpp, while allowing us to remove some ugly FIXMEs from time immemorial.

I thought about converting this to some kind of clever RequestServer::register_protocols({"gemini"sv, "http"sv, "https"sv}) API or something, but this seems simpler :)

ADKaster avatar Mar 05 '24 22:03 ADKaster