mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03:00
5232afa13d
This makes it so the clients don't have to wait for RS to become responsive, potentially allowing them to do other things while RS handles the connections. Fixes #23306.
15 lines
606 B
Plaintext
15 lines
606 B
Plaintext
#include <AK/URL.h>
|
|
#include <RequestServer/ConnectionCache.h>
|
|
|
|
endpoint RequestServer
|
|
{
|
|
// Test if a specific protocol is supported, e.g "http"
|
|
is_supported_protocol(ByteString protocol) => (bool supported)
|
|
|
|
start_request(i32 request_id, ByteString method, URL url, HashMap<ByteString,ByteString> request_headers, ByteBuffer request_body, Core::ProxyData proxy_data) =|
|
|
stop_request(i32 request_id) => (bool success)
|
|
set_certificate(i32 request_id, ByteString certificate, ByteString key) => (bool success)
|
|
|
|
ensure_connection(URL url, ::RequestServer::CacheLevel cache_level) =|
|
|
}
|