diff --git a/src/Http3ResponseData.h b/src/Http3ResponseData.h index 42047a0..6f8ad74 100644 --- a/src/Http3ResponseData.h +++ b/src/Http3ResponseData.h @@ -2,6 +2,7 @@ #define UWS_H3RESPONSEDATA_H #include "MoveOnlyFunction.h" +#include "AsyncSocketData.h" #include namespace uWS { @@ -9,12 +10,15 @@ namespace uWS { MoveOnlyFunction onAborted = nullptr; MoveOnlyFunction onData = nullptr; + MoveOnlyFunction onWritable = nullptr; - // hasWrittenStatus - - std::string buffer; - int bufferOffset = 0; + /* Status is always first header just like for h1 */ + unsigned int headerOffset = 0; + + /* Write offset */ + uintmax_t offset = 0; + BackPressure backpressure; }; }