mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 09:15:08 +00:00

Clients now receive HTTP status codes like 200, 404, etc. Note that a 404 with content is still considered a "successful" download from ProtocolServer's perspective. It's up to the client to interpret the status code. I'm not sure if this is the best API, but it'll work for now.
6 lines
297 B
Text
6 lines
297 B
Text
endpoint ProtocolClient = 13
|
|
{
|
|
// Download notifications
|
|
DownloadProgress(i32 download_id, Optional<u32> total_size, u32 downloaded_size) =|
|
|
DownloadFinished(i32 download_id, bool success, Optional<u32> status_code, u32 total_size, i32 shbuf_id, IPC::Dictionary response_headers) =|
|
|
}
|