LibHTTP+LibWeb: Move Infrastructure::Request::CacheMode to LibHTTP

We will need to send this enum over IPC to RequestServer to affect the
disk cache's behavior.
This commit is contained in:
Timothy Flynn
2026-01-21 13:48:32 -05:00
committed by Tim Flynn
parent 4dda144ce0
commit 6b91199253
Notes: github-actions[bot] 2026-02-06 11:18:01 +00:00
8 changed files with 65 additions and 40 deletions

View File

@@ -72,7 +72,7 @@ WebIDL::ExceptionOr<GC::Ref<EventSource>> EventSource::construct_impl(JS::Realm&
request->header_list()->set({ "Accept"sv, "text/event-stream"sv });
// 11. Set request's cache mode to "no-store".
request->set_cache_mode(Fetch::Infrastructure::Request::CacheMode::NoStore);
request->set_cache_mode(HTTP::CacheMode::NoStore);
// 12. Set request's initiator type to "other".
request->set_initiator_type(Fetch::Infrastructure::Request::InitiatorType::Other);