diff options
Diffstat (limited to 'methods/basehttp.h')
| -rw-r--r-- | methods/basehttp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/methods/basehttp.h b/methods/basehttp.h index c0d14d854..2a13c7abf 100644 --- a/methods/basehttp.h +++ b/methods/basehttp.h @@ -27,6 +27,12 @@ class Hashes; class BaseHttpMethod; struct ServerState; +enum class HaveContent +{ + UNKNOWN, + FALSE, + TRUE, +}; struct RequestState { unsigned int Major = 0; @@ -46,7 +52,8 @@ struct RequestState unsigned long long MaximumSize = 0; time_t Date; - bool HaveContent = false; + HaveContent haveContent = HaveContent::UNKNOWN; + enum {Chunked,Stream,Closes} Encoding = Closes; enum {Header, Data} State = Header; std::string Location; |
