| 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 | |
| 1128 | private: |
| 1129 | void check_header(brpc::Controller* cntl) { |
nothing calls this directly
no test coverage detected