Searched refs:http_code (Results 1 – 3 of 3) sorted by relevance
31 static inline bool IsHttpSuccess(int http_code) { in IsHttpSuccess() argument32 return http_code >= 200 && http_code <= 299; in IsHttpSuccess()39 bool HttpInfo() { return http_code >= 100 && http_code <= 199; } in HttpInfo()40 bool HttpSuccess() { return IsHttpSuccess(http_code); } in HttpSuccess()41 bool HttpRedirect() { return http_code >= 300 && http_code <= 399; } in HttpRedirect()42 bool HttpClientError() { return http_code >= 400 && http_code <= 499; } in HttpClientError()43 bool HttpServerError() { return http_code >= 500 && http_code <= 599; } in HttpServerError()46 long http_code; member
181 return HttpResponse<std::string>{path, http_response.http_code}; in DownloadToFile()235 return HttpResponse<Json::Value>{error_json, response.http_code}; in DownloadToJson()237 return HttpResponse<Json::Value>{*result, response.http_code}; in DownloadToJson()255 return HttpResponse<std::string>{stream.str(), http_response.http_code}; in DownloadToString()299 long http_code = 0; in DownloadToCallback() local300 curl_easy_getinfo(curl_, CURLINFO_RESPONSE_CODE, &http_code); in DownloadToCallback()301 return HttpResponse<void>{{}, http_code}; in DownloadToCallback()
194 long http_code = 0; in PostRequest() local195 curl_easy_getinfo(curl.get(), CURLINFO_RESPONSE_CODE, &http_code); in PostRequest()197 if (rc == CURLE_ABORTED_BY_CALLBACK || http_code != 200) { in PostRequest()199 LOG(ERROR) << "http error code: " << http_code; in PostRequest()