MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / allow_header

Method allow_header

boost-http/http.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_ = {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected