mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
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:
parent
168d28c15f
commit
1e97ae66e5
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/trflynn89
Commit: 1e97ae66e5
Pull-request: https://github.com/SerenityOS/serenity/pull/24452
Issue: https://github.com/SerenityOS/serenity/issues/23847
4 changed files with 189 additions and 90 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue