mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibHTTP+RequestServer: Use HTTP::HeaderMap for request headers
No longer just for response headers! The same type is obviously useful and ergonomic when making requests as well.
This commit is contained in:
parent
5ac0938859
commit
260c5c50ad
Notes:
sideshowbarker
2024-07-16 22:58:46 +09:00
Author: https://github.com/awesomekling
Commit: 260c5c50ad
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/116
20 changed files with 41 additions and 54 deletions
|
@ -57,7 +57,7 @@ public:
|
|||
virtual void prefetch_dns(URL::URL const&) = 0;
|
||||
virtual void preconnect(URL::URL const&) = 0;
|
||||
|
||||
virtual RefPtr<ResourceLoaderConnectorRequest> start_request(ByteString const& method, URL::URL const&, HashMap<ByteString, ByteString> const& request_headers = {}, ReadonlyBytes request_body = {}, Core::ProxyData const& = {}) = 0;
|
||||
virtual RefPtr<ResourceLoaderConnectorRequest> start_request(ByteString const& method, URL::URL const&, HTTP::HeaderMap const& request_headers = {}, ReadonlyBytes request_body = {}, Core::ProxyData const& = {}) = 0;
|
||||
virtual RefPtr<Web::WebSockets::WebSocketClientSocket> websocket_connect(const URL::URL&, ByteString const& origin, Vector<ByteString> const& protocols) = 0;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue