From 47ea36b8b9ba314ed0f2861385b5608426228c31 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Wed, 28 Sep 2022 03:35:15 +0200 Subject: [PATCH] Whoops forgot that one --- src/Http3ResponseData.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; }; }