mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
WebServer: Use Core::Stream
to read served files
This commit is contained in:
parent
3a16168ace
commit
debde54928
2 changed files with 9 additions and 9 deletions
|
@ -30,7 +30,7 @@ private:
|
|||
};
|
||||
|
||||
ErrorOr<bool> handle_request(ReadonlyBytes);
|
||||
ErrorOr<void> send_response(InputStream&, HTTP::HttpRequest const&, ContentInfo);
|
||||
ErrorOr<void> send_response(Core::Stream::Stream&, HTTP::HttpRequest const&, ContentInfo);
|
||||
ErrorOr<void> send_redirect(StringView redirect, HTTP::HttpRequest const&);
|
||||
ErrorOr<void> send_error_response(unsigned code, HTTP::HttpRequest const&, Vector<String> const& headers = {});
|
||||
void die();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue