LibWeb: Support unbuffered resource load requests

This adds an alternate API to ResourceLoader to load HTTP/HTTPS/Gemini
requests unbuffered. Most of the changes here are moving parts of the
existing ResourceLoader::load method to helper methods so they can be
re-used by the new ResourceLoader::load_unbuffered.
This commit is contained in:
Timothy Flynn 2024-05-26 07:52:39 -04:00 committed by Andreas Kling
commit 1e97ae66e5
Notes: sideshowbarker 2024-07-17 18:46:30 +09:00
4 changed files with 189 additions and 90 deletions

View file

@ -10,6 +10,13 @@
namespace Web {
static int s_resource_id = 0;
LoadRequest::LoadRequest()
: m_id(s_resource_id++)
{
}
LoadRequest LoadRequest::create_for_url_on_page(const URL::URL& url, Page* page)
{
LoadRequest request;