2021-07-02 21:40:44 -07:00
|
|
|
#include <AK/URL.h>
|
2021-09-28 00:06:52 +03:30
|
|
|
#include <RequestServer/ConnectionCache.h>
|
2021-07-02 21:40:44 -07:00
|
|
|
|
2021-04-23 22:45:52 +02:00
|
|
|
endpoint RequestServer
|
|
|
|
|
{
|
|
|
|
|
// Test if a specific protocol is supported, e.g "http"
|
2022-12-04 18:02:33 +00:00
|
|
|
is_supported_protocol(DeprecatedString protocol) => (bool supported)
|
2021-04-23 22:45:52 +02:00
|
|
|
|
2023-05-14 23:04:47 +02:00
|
|
|
start_request(DeprecatedString method, URL url, HashMap<DeprecatedString,DeprecatedString> request_headers, ByteBuffer request_body, Core::ProxyData proxy_data) => (i32 request_id, Optional<IPC::File> response_fd)
|
2021-05-03 15:52:56 +02:00
|
|
|
stop_request(i32 request_id) => (bool success)
|
2022-12-04 18:02:33 +00:00
|
|
|
set_certificate(i32 request_id, DeprecatedString certificate, DeprecatedString key) => (bool success)
|
2021-09-28 00:06:52 +03:30
|
|
|
|
|
|
|
|
ensure_connection(URL url, ::RequestServer::CacheLevel cache_level) =|
|
2021-04-23 22:45:52 +02:00
|
|
|
}
|