mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
Everywhere: Hoist the Services folder to the top-level
This commit is contained in:
parent
a7dc40eff3
commit
22e0eeada2
Notes:
github-actions[bot]
2024-11-10 11:52:06 +00:00
Author: https://github.com/trflynn89
Commit: 22e0eeada2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
68 changed files with 41 additions and 41 deletions
25
Services/RequestServer/RequestServer.ipc
Normal file
25
Services/RequestServer/RequestServer.ipc
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include <LibCore/Proxy.h>
|
||||
#include <LibHTTP/HeaderMap.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <RequestServer/CacheLevel.h>
|
||||
|
||||
endpoint RequestServer
|
||||
{
|
||||
connect_new_client() => (IPC::File client_socket)
|
||||
|
||||
// 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 url, HTTP::HeaderMap 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 url, ::RequestServer::CacheLevel cache_level) =|
|
||||
|
||||
// Websocket Connection API
|
||||
websocket_connect(i64 websocket_id, URL::URL url, ByteString origin, Vector<ByteString> protocols, Vector<ByteString> extensions, HTTP::HeaderMap additional_request_headers) =|
|
||||
websocket_send(i64 websocket_id, bool is_text, ByteBuffer data) =|
|
||||
websocket_close(i64 websocket_id, u16 code, ByteString reason) =|
|
||||
websocket_set_certificate(i64 request_id, ByteString certificate, ByteString key) => (bool success)
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue