Whoops forgot that one

This commit is contained in:
Alex Hultman
2022-09-28 03:35:15 +02:00
parent c8982fdde0
commit 47ea36b8b9
+8 -4
View File
@@ -2,6 +2,7 @@
#define UWS_H3RESPONSEDATA_H #define UWS_H3RESPONSEDATA_H
#include "MoveOnlyFunction.h" #include "MoveOnlyFunction.h"
#include "AsyncSocketData.h"
#include <string_view> #include <string_view>
namespace uWS { namespace uWS {
@@ -9,12 +10,15 @@ namespace uWS {
MoveOnlyFunction<void()> onAborted = nullptr; MoveOnlyFunction<void()> onAborted = nullptr;
MoveOnlyFunction<void(std::string_view, bool)> onData = nullptr; MoveOnlyFunction<void(std::string_view, bool)> onData = nullptr;
MoveOnlyFunction<bool(uintmax_t)> onWritable = nullptr;
// hasWrittenStatus /* Status is always first header just like for h1 */
unsigned int headerOffset = 0;
std::string buffer;
int bufferOffset = 0; /* Write offset */
uintmax_t offset = 0;
BackPressure backpressure;
}; };
} }