blob: 2348e01af82cd3c3d90cdfc842d70c4dd4361ba3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
endpoint ProtocolServer
{
// Basic protocol
Greet() => ()
// 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)
}
|