34 for (
auto p: method) {
44 if (name.
size() == 0) {
48 if (p < 0x80 && http_tokens[(
uint8_t)p] != p) {
73 lws_expect_ws2 }
state = lws_none;
97 state = lws_expect_nl;
100 if ((*p < 0x20 || *p == 0x7f) && *p !=
'\t') {
112 state = lws_expect_ws1;
115 if (*p !=
' ' && *p !=
'\t') {
119 state = lws_expect_ws2;
122 if (*p !=
' ' && *p !=
'\t') {
137 return !escape && (state == lws_none || state == lws_expect_ws2);
145 std::vector<std::string>& temps);
148 std::vector<compress::Header>& headers,
static std::vector< compress::Header > prepareMessageForCompression(const HTTPMessage &msg, std::vector< std::string > &temps)
static bool validateHeaderName(folly::ByteRange name)
constexpr size_type size() const
auto begin(TestAdlIterable &instance)
bool validateURL(folly::ByteRange url)
static bool validateMethod(folly::ByteRange method)
folly::Optional< PskKeyExchangeMode > mode
static bool validateURL(folly::ByteRange url)
auto end(TestAdlIterable &instance)
static const char http_tokens[256]
static const char *const value
static bool appendHeaders(const HTTPHeaders &inputHeaders, std::vector< compress::Header > &headers, HTTPHeaderCode headerToCheck)
static bool validateHeaderValue(folly::ByteRange value, CtlEscapeMode mode)
static bool hasGzipAndDeflate(const std::string &value, bool &hasGzip, bool &hasDeflate)