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

Method UploadFailed

test/brpc_http_rpc_protocol_unittest.cpp:1118–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116 }
1117
1118 void UploadFailed(::google::protobuf::RpcController* controller,
1119 const ::test::HttpRequest* request,
1120 ::test::HttpResponse* response,
1121 ::google::protobuf::Closure* done) {
1122 brpc::Controller* cntl = static_cast<brpc::Controller*>(controller);
1123 check_header(cntl);
1124 cntl->request_will_be_read_progressively();
1125 cntl->ReadProgressiveAttachmentBy(new ServerAlwaysFailReader(cntl, done));
1126 }
1127
1128private:
1129 void check_header(brpc::Controller* cntl) {

Callers

nothing calls this directly

Tested by

no test coverage detected