LibHTTP+Everywhere: Move the cookie implementation to LibHTTP

This will allow parsing cookies outside of LibWeb.

LibHTTP is basically becoming the home of HTTP WG specs.
This commit is contained in:
Timothy Flynn
2026-02-07 11:13:47 -05:00
committed by Andreas Kling
parent 0a334f50db
commit 8d97389038
Notes: github-actions[bot] 2026-02-10 11:23:01 +00:00
39 changed files with 212 additions and 203 deletions

View File

@@ -204,7 +204,7 @@ ErrorOr<void> WebSocket::establish_web_socket_connection(URL::URL const& url_rec
auto cookies = ([&] {
auto& page = Bindings::principal_host_defined_page(HTML::principal_realm(realm()));
return page.client().page_did_request_cookie(url_record, Cookie::Source::Http).cookie;
return page.client().page_did_request_cookie(url_record, HTTP::Cookie::Source::Http).cookie;
})();
if (!cookies.is_empty()) {