Clean Flush() implementation

This commit is contained in:
Ian Gulliver
2019-04-28 18:51:56 +00:00
parent ec73c5266d
commit 4ec3eb2066
2 changed files with 57 additions and 26 deletions

View File

@@ -3,6 +3,7 @@
#include <unordered_map>
#include "buffer.h"
#include "fastcgi_parse.h"
class FastCGIConn;
@@ -21,6 +22,9 @@ class FastCGIRequest {
void End();
private:
FastCGIHeader OutputHeader();
iovec OutputVec();
const uint16_t request_id_;
FastCGIConn *conn_;
@@ -28,5 +32,5 @@ class FastCGIRequest {
std::string in_;
Buffer out_buf_;
bool body_sent_ = false;
bool body_written_ = false;
};