mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
897998017a
You can now pass a dictionary of request headers when starting a new download in ProtocolServer. The HTTP and HTTPS protocol will include the headers in their requests.
15 lines
482 B
Text
15 lines
482 B
Text
endpoint ProtocolServer = 9
|
|
{
|
|
// Basic protocol
|
|
Greet() => (i32 client_id)
|
|
|
|
// FIXME: It would be nice if the kernel provided a way to avoid this
|
|
DisownSharedBuffer(i32 shbuf_id) => ()
|
|
|
|
// Test if a specific protocol is supported, e.g "http"
|
|
IsSupportedProtocol(String protocol) => (bool supported)
|
|
|
|
// Download API
|
|
StartDownload(String url, IPC::Dictionary request_headers) => (i32 download_id)
|
|
StopDownload(i32 download_id) => (bool success)
|
|
}
|