mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint
This will allow LibWeb (and other components) to request a connection to be premade and cached, to make subsequent loads faster.
This commit is contained in:
committed by
Andreas Kling
parent
6b2e4f896b
commit
3ec39fc62e
@@ -15,6 +15,11 @@ RequestClient::RequestClient()
|
||||
{
|
||||
}
|
||||
|
||||
void RequestClient::ensure_connection(URL const& url, ::RequestServer::CacheLevel cache_level)
|
||||
{
|
||||
async_ensure_connection(url, cache_level);
|
||||
}
|
||||
|
||||
template<typename RequestHashMapTraits>
|
||||
RefPtr<Request> RequestClient::start_request(String const& method, URL const& url, HashMap<String, String, RequestHashMapTraits> const& request_headers, ReadonlyBytes request_body)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user