We need HttpResponse::hasResponded

This commit is contained in:
Alex Hultman
2019-01-18 16:36:24 +01:00
parent 3c3819fe3c
commit 2caefa9d96
6 changed files with 53 additions and 6 deletions
+2 -5
View File
@@ -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;