MCPcopy Create free account
hub / github.com/apache/brpc / DescribeHttpParserFlags

Function DescribeHttpParserFlags

src/brpc/details/http_message.cpp:521–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521static void DescribeHttpParserFlags(std::ostream& os, unsigned int flags) {
522 if (flags & F_CHUNKED) {
523 os << "F_CHUNKED|";
524 }
525 if (flags & F_CONNECTION_KEEP_ALIVE) {
526 os << "F_CONNECTION_KEEP_ALIVE|";
527 }
528 if (flags & F_CONNECTION_CLOSE) {
529 os << "F_CONNECTION_CLOSE|";
530 }
531 if (flags & F_TRAILING) {
532 os << "F_TRAILING|";
533 }
534 if (flags & F_UPGRADE) {
535 os << "F_UPGRADE|";
536 }
537 if (flags & F_SKIPBODY) {
538 os << "F_SKIPBODY|";
539 }
540 if (flags & F_CONTENTLENGTH) {
541 os << "F_CONTENTLENGTH|";
542 }
543}
544
545std::ostream& operator<<(std::ostream& os, const http_parser& parser) {
546 os << "{type=" << http_parser_type_name((http_parser_type)parser.type)

Callers 1

http_message.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected