mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
WebServer: Stream the downloaded files
...instead of reading them into memory first. This makes it possible to download large files from WebServer.
This commit is contained in:
parent
58abdde2e4
commit
bdda1600d0
Notes:
sideshowbarker
2024-07-18 22:43:36 +09:00
Author: https://github.com/alimpfard
Commit: bdda1600d0
Pull-request: https://github.com/SerenityOS/serenity/pull/5176
2 changed files with 19 additions and 6 deletions
|
@ -42,7 +42,7 @@ private:
|
|||
Client(NonnullRefPtr<Core::TCPSocket>, const String&, Core::Object* parent);
|
||||
|
||||
void handle_request(ReadonlyBytes);
|
||||
void send_response(StringView, const HTTP::HttpRequest&, const String& content_type);
|
||||
void send_response(InputStream&, const HTTP::HttpRequest&, const String& content_type);
|
||||
void send_redirect(StringView redirect, const HTTP::HttpRequest& request);
|
||||
void send_error_response(unsigned code, const StringView& message, const HTTP::HttpRequest&);
|
||||
void die();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue