Fix payload iteration issue of FormBody; Log form body; ignore body for response of HEAD.

This commit is contained in:
Chunting Gu
2019-07-09 13:18:55 +08:00
parent 3309e7896a
commit b2cbc450b8
21 changed files with 364 additions and 165 deletions
+10
View File
@@ -8,6 +8,16 @@ namespace webcc {
// -----------------------------------------------------------------------------
namespace literal_buffers {
const char HEADER_SEPARATOR[2] = { ':', ' ' };
const char CRLF[2] = { '\r', '\n' };
const char DOUBLE_DASHES[2] = { '-', '-' };
} // namespace literal_buffers
// -----------------------------------------------------------------------------
namespace media_types {
std::string FromExtension(const std::string& ext) {