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

Method Upload

test/brpc_http_rpc_protocol_unittest.cpp:1108–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106class UploadServiceImpl : public ::test::UploadService {
1107public:
1108 void Upload(::google::protobuf::RpcController* controller,
1109 const ::test::HttpRequest* request,
1110 ::test::HttpResponse* response,
1111 ::google::protobuf::Closure* done) {
1112 brpc::Controller* cntl = static_cast<brpc::Controller*>(controller);
1113 check_header(cntl);
1114 cntl->request_will_be_read_progressively();
1115 cntl->ReadProgressiveAttachmentBy(new ServerProgressiveReader(cntl, done));
1116 }
1117
1118 void UploadFailed(::google::protobuf::RpcController* controller,
1119 const ::test::HttpRequest* request,

Callers

nothing calls this directly

Tested by

no test coverage detected