ladybird/Services
AnotherTest 4a2da10e38 ProtocolServer: Stream the downloaded data if possible
This patchset makes ProtocolServer stream the downloads to its client
(LibProtocol), and as such changes the download API; a possible
download lifecycle could be as such:
notation = client->server:'>', server->client:'<', pipe activity:'*'
```
> StartDownload(GET, url, headers, {})
< Response(0, fd 8)
* {data, 1024b}
< HeadersBecameAvailable(0, response_headers, 200)
< DownloadProgress(0, 4K, 1024)
* {data, 1024b}
* {data, 1024b}
< DownloadProgress(0, 4K, 2048)
* {data, 1024b}
< DownloadProgress(0, 4K, 1024)
< DownloadFinished(0, true, 4K)
```

Since managing the received file descriptor is a pain, LibProtocol
implements `Download::stream_into(OutputStream)`, which can be used to
stream the download into any given output stream (be it a file, or
memory, or writing stuff with a delay, etc.).
Also, as some of the users of this API require all the downloaded data
upfront, LibProtocol also implements `set_should_buffer_all_input()`,
which causes the download instance to buffer all the data until the
download is complete, and to call the `on_buffered_download_finish`
hook.
2020-12-30 13:31:55 +01:00
..
AudioServer AudioServer: Fix issue when adding a BufferQueue to Mixer 2020-12-05 10:10:27 +01:00
ChessEngine LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
Clipboard Services: Fix typos 2020-12-28 00:55:45 +01:00
CrashDaemon CrashDaemon: Move from Applications to Services 2020-12-30 03:20:06 +01:00
DHCPClient Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
EchoServer EchoServer: Add a simple echo server 2020-12-16 17:29:12 +01:00
ImageDecoder AK: Add trivial structure validation to SharedBuffer 2020-10-02 15:38:07 +02:00
LaunchServer Everywhere: Move AppFile from LibGUI to LibDesktop 2020-12-28 01:28:07 +01:00
LookupServer AK: Use direct-list-initialization for Vector::empend() (#4564) 2020-12-27 23:06:37 +01:00
NotificationServer LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
ProtocolServer ProtocolServer: Stream the downloaded data if possible 2020-12-30 13:31:55 +01:00
SystemMenu LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
SystemServer Kernel: Introduce the DevFS 2020-12-27 23:07:44 +01:00
Taskbar LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
TelnetServer Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
WebContent LibWeb: Merge Document::layout() and Document::update_layout() 2020-12-14 10:39:57 +01:00
WebServer LibHTTP: Make HTTPRequest::from_raw_request() take a ReadonlyBytes 2020-12-19 18:29:13 +01:00
WindowServer WindowServer: Added IPC requests for getting and setting mouse settings 2020-12-30 11:58:52 +01:00
CMakeLists.txt CrashDaemon: Move from Applications to Services 2020-12-30 03:20:06 +01:00