blob: 7f6d89c0c8f0fc08a6dfd88507e3ab541dad205f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <AK/URL.h>
#include <RequestServer/ConnectionCache.h>
endpoint RequestServer
{
// Test if a specific protocol is supported, e.g "http"
is_supported_protocol(String protocol) => (bool supported)
start_request(String method, URL url, IPC::Dictionary request_headers, ByteBuffer request_body, Core::ProxyData proxy_data) => (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) =|
}
|