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

Method set_status_code

src/brpc/http_header.cpp:122–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void HttpHeader::set_status_code(int status_code) {
123 _status_code = status_code;
124}
125
126std::string& HttpHeader::GetOrAddHeader(const std::string& key) {
127 if (IsContentType(key)) {

Callers 15

streamMethod · 0.80
MakeResponseMessageMethod · 0.80
LoginMethod · 0.80
ListMethod · 0.80
TESTFunction · 0.80
UpdateResponseHeaderFunction · 0.80
~HttpResponseSenderMethod · 0.80
ParseHttpMessageFunction · 0.80
SendUnauthorizedResponseFunction · 0.80
ConsumeMethod · 0.80
OnResetStreamMethod · 0.80
OnGoAwayMethod · 0.80

Calls

no outgoing calls

Tested by 4

MakeResponseMessageMethod · 0.64
LoginMethod · 0.64
ListMethod · 0.64
TESTFunction · 0.64