mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
887a62582d
Passing `-1` wouldn't work, as these are passed to `sendfd()'. Fixes #4706.
13 lines
520 B
Text
13 lines
520 B
Text
endpoint ProtocolServer = 9
|
|
{
|
|
// Basic protocol
|
|
Greet() => (i32 client_id)
|
|
|
|
// Test if a specific protocol is supported, e.g "http"
|
|
IsSupportedProtocol(String protocol) => (bool supported)
|
|
|
|
// Download API
|
|
StartDownload(String method, URL url, IPC::Dictionary request_headers, ByteBuffer request_body) => (i32 download_id, Optional<IPC::File> response_fd)
|
|
StopDownload(i32 download_id) => (bool success)
|
|
SetCertificate(i32 download_id, String certificate, String key) => (bool success)
|
|
}
|