| 38 | private: |
| 39 | enum class WriteType { Headers, Chunk, Final }; |
| 40 | static bool allow_header(std::string name) { |
| 41 | std::transform(name.begin(), name.end(), name.begin(), [](unsigned char c) { return std::tolower(c); }); |
| 42 | |
| 43 | return !(name == "host" || name == "connection" || name == "transfer-encoding" || name == "content-length"); |
| 44 | } |
| 45 | |
| 46 | void read_next_request() { |
| 47 | req_ = {}; |
nothing calls this directly
no outgoing calls
no test coverage detected