mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
13 lines
477 B
Text
13 lines
477 B
Text
|
|
endpoint RequestServer
|
||
|
|
{
|
||
|
|
// Basic protocol
|
||
|
|
Greet() => ()
|
||
|
|
|
||
|
|
// Test if a specific protocol is supported, e.g "http"
|
||
|
|
IsSupportedProtocol(String protocol) => (bool supported)
|
||
|
|
|
||
|
|
StartRequest(String method, URL url, IPC::Dictionary request_headers, ByteBuffer request_body) => (i32 request_id, Optional<IPC::File> response_fd)
|
||
|
|
StopRequest(i32 request_id) => (bool success)
|
||
|
|
SetCertificate(i32 request_id, String certificate, String key) => (bool success)
|
||
|
|
}
|