mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +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:
parent
6b2e4f896b
commit
3ec39fc62e
6 changed files with 54 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue