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

Function GetUserAddressFromHeader

src/brpc/policy/http_rpc_protocol.cpp:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111inline bool GetUserAddressFromHeader(const HttpHeader& headers,
112 butil::EndPoint* user_addr) {
113 if (FLAGS_http_header_of_user_ip.empty()) {
114 return false;
115 }
116 return GetUserAddressFromHeaderImpl(headers, user_addr);
117}
118
119CommonStrings::CommonStrings()
120 : ACCEPT("accept")

Callers 2

VerifyHttpRequestFunction · 0.85
ProcessHttpRequestFunction · 0.85

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected