MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetPostEmptyBody

Method SetPostEmptyBody

tensorflow/core/platform/cloud/curl_http_request.cc:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void CurlHttpRequest::SetPostEmptyBody() {
282 CheckNotSent();
283 CheckMethodNotSet();
284 is_method_set_ = true;
285 method_ = RequestMethod::kPost;
286 CHECK_CURL_OK(libcurl_->curl_easy_setopt(curl_, CURLOPT_POST, 1));
287 AddHeader("Content-Length", "0");
288 AddHeader("Transfer-Encoding", "identity");
289 CHECK_CURL_OK(libcurl_->curl_easy_setopt(curl_, CURLOPT_READDATA,
290 reinterpret_cast<void*>(this)));
291 CHECK_CURL_OK(libcurl_->curl_easy_setopt(curl_, CURLOPT_READFUNCTION,
292 &CurlHttpRequest::ReadCallback));
293}
294
295void CurlHttpRequest::SetResultBuffer(std::vector<char>* out_buffer) {
296 CheckNotSent();

Callers 3

RenameObjectMethod · 0.45
TESTFunction · 0.45

Calls 1

curl_easy_setoptMethod · 0.45

Tested by 1

TESTFunction · 0.36