mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 19:18:11 +00:00

We already have and use HashMap<DeprecatedString, DeprecatedString> nearly everywhere, which is equivalent.
14 lines
676 B
Text
14 lines
676 B
Text
#include <AK/URL.h>
|
|
#include <RequestServer/ConnectionCache.h>
|
|
|
|
endpoint RequestServer
|
|
{
|
|
// Test if a specific protocol is supported, e.g "http"
|
|
is_supported_protocol(DeprecatedString protocol) => (bool supported)
|
|
|
|
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)
|
|
stop_request(i32 request_id) => (bool success)
|
|
set_certificate(i32 request_id, DeprecatedString certificate, DeprecatedString key) => (bool success)
|
|
|
|
ensure_connection(URL url, ::RequestServer::CacheLevel cache_level) =|
|
|
}
|