1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +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:
Ali Mohammad Pur 2021-09-28 00:06:52 +03:30 committed by Andreas Kling
parent 6b2e4f896b
commit 3ec39fc62e
6 changed files with 54 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#include <AK/URL.h>
#include <RequestServer/ConnectionCache.h>
endpoint RequestServer
{
@ -8,4 +9,6 @@ endpoint RequestServer
start_request(String method, URL url, IPC::Dictionary request_headers, ByteBuffer request_body) => (i32 request_id, Optional<IPC::File> response_fd)
stop_request(i32 request_id) => (bool success)
set_certificate(i32 request_id, String certificate, String key) => (bool success)
ensure_connection(URL url, ::RequestServer::CacheLevel cache_level) =|
}