mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
6e19ab2bbc
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
15 lines
649 B
Plaintext
15 lines
649 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(DeprecatedString protocol) => (bool supported)
|
|
|
|
start_request(DeprecatedString 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, DeprecatedString certificate, DeprecatedString key) => (bool success)
|
|
|
|
ensure_connection(URL url, ::RequestServer::CacheLevel cache_level) =|
|
|
}
|