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

Method HttpMessage

src/brpc/details/http_message.cpp:438–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436};
437
438HttpMessage::HttpMessage(bool read_body_progressively,
439 HttpMethod request_method)
440 : _request_method(request_method)
441 , _read_body_progressively(read_body_progressively) {
442 http_parser_init(&_parser, HTTP_BOTH);
443 _parser.allow_chunked_length = 1;
444 _parser.data = this;
445}
446
447HttpMessage::~HttpMessage() {
448 if (_body_reader) {

Callers

nothing calls this directly

Calls 1

http_parser_initFunction · 0.85

Tested by

no test coverage detected