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

Function VerifyNsheadRequest

src/brpc/policy/nshead_protocol.cpp:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391bool VerifyNsheadRequest(const InputMessageBase* msg_base) {
392 Server* server = (Server*)msg_base->arg();
393 if (server->options().auth) {
394 LOG(WARNING) << "nshead does not support authentication";
395 return false;
396 }
397 return true;
398}
399
400void SerializeNsheadRequest(butil::IOBuf* request_buf, Controller* cntl,
401 const google::protobuf::Message* req_base) {

Callers 2

VerifyMessageMethod · 0.85
VerifyMessageMethod · 0.85

Calls 2

argMethod · 0.80
optionsMethod · 0.80

Tested by 2

VerifyMessageMethod · 0.68
VerifyMessageMethod · 0.68