mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibProtocol: Overload Request::stream_into() to accept a Core::Stream
The code is actually identical to the other stream_into() function.
This commit is contained in:
parent
20b4bfc892
commit
de3225a28b
2 changed files with 36 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/Notifier.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
|
||||
namespace Protocol {
|
||||
|
@ -38,6 +39,7 @@ public:
|
|||
bool stop();
|
||||
|
||||
void stream_into(OutputStream&);
|
||||
void stream_into(Core::Stream::Stream&);
|
||||
|
||||
bool should_buffer_all_input() const { return m_should_buffer_all_input; }
|
||||
/// Note: Will override `on_finish', and `on_headers_received', and expects `on_buffered_request_finish' to be set!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue