We need HttpResponse::hasResponded
This commit is contained in:
@@ -38,17 +38,14 @@ private:
|
||||
HTTP_STATUS_CALLED = 1, // used
|
||||
HTTP_WRITE_CALLED = 2, // used
|
||||
HTTP_END_CALLED = 4, // used
|
||||
HTTP_UPGRADED_TO_WEBSOCKET = 8, // not used
|
||||
HTTP_RESPONDED_TO = 8, // used
|
||||
HTTP_ENDED_STREAM_OUT = 16 // not used
|
||||
};
|
||||
|
||||
/* Per socket event handlers */
|
||||
fu2::unique_function<bool(int)> onWritable;
|
||||
fu2::unique_function<void()> onAborted;
|
||||
//std::function<void()> onData;
|
||||
|
||||
fu2::unique_function<void(std::string_view, bool)> inStream;
|
||||
//std::function<std::pair<bool, std::string_view>(int)> outStream;
|
||||
fu2::unique_function<void(std::string_view, bool)> inStream; // onData
|
||||
/* Outgoing offset */
|
||||
int offset = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user