Home
last modified time | relevance | path

Searched refs:http_code (Results 1 – 18 of 18) sorted by relevance

/aosp_15_r20/device/google/cuttlefish/host/libs/web/http_client/
Dhttp_client.h31 static inline bool IsHttpSuccess(int http_code) { in IsHttpSuccess() argument
32 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
Dhttp_client.cc181 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() local
300 curl_easy_getinfo(curl_, CURLINFO_RESPONSE_CODE, &http_code); in DownloadToCallback()
301 return HttpResponse<void>{{}, http_code}; in DownloadToCallback()
/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/
H A Dblind_sign_auth.cc337 absl::StatusCode BlindSignAuth::HttpCodeToStatusCode(int http_code) { in HttpCodeToStatusCode() argument
341 if (http_code >= 200 && http_code < 300) { in HttpCodeToStatusCode()
343 } else if (http_code >= 300 && http_code < 400) { in HttpCodeToStatusCode()
345 } else if (http_code == 400) { in HttpCodeToStatusCode()
347 } else if (http_code == 401) { in HttpCodeToStatusCode()
349 } else if (http_code == 403) { in HttpCodeToStatusCode()
351 } else if (http_code == 404) { in HttpCodeToStatusCode()
353 } else if (http_code == 409) { in HttpCodeToStatusCode()
355 } else if (http_code == 416) { in HttpCodeToStatusCode()
357 } else if (http_code == 429) { in HttpCodeToStatusCode()
[all …]
H A Dblind_sign_auth.h58 absl::StatusCode HttpCodeToStatusCode(int http_code);
/aosp_15_r20/prebuilts/runtime/mainline/platform/sdk/include/external/perfetto/include/perfetto/ext/base/http/
H A Dhttp_server.h90 void SendResponseHeaders(const char* http_code,
99 void SendResponse(const char* http_code,
103 void SendResponseAndClose(const char* http_code,
106 SendResponse(http_code, headers, content, true);
/aosp_15_r20/external/perfetto/include/perfetto/ext/base/http/
H A Dhttp_server.h90 void SendResponseHeaders(const char* http_code,
99 void SendResponse(const char* http_code,
103 void SendResponseAndClose(const char* http_code,
106 SendResponse(http_code, headers, content, true);
/aosp_15_r20/device/google/cuttlefish/host/commands/metrics/
Dutils.cc192 long http_code = 0; in PostRequest() local
193 curl_easy_getinfo(curl.get(), CURLINFO_RESPONSE_CODE, &http_code); in PostRequest()
195 if (rc == CURLE_ABORTED_BY_CALLBACK || http_code != 200) { in PostRequest()
197 LOG(ERROR) << "http error code: " << http_code; in PostRequest()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/distrib/
Dbuildozer.sh45 http_code=`curl -L -o ${TEMP_BUILDOZER_PATH} -w "%{http_code}" ${download_link}`
46 if [ $http_code -eq "200" ]; then
/aosp_15_r20/external/grpc-grpc/tools/distrib/
H A Dbuildozer.sh45 http_code=`curl -L -o ${TEMP_BUILDOZER_PATH} -w "%{http_code}" ${download_link}`
46 if [ $http_code -eq "200" ]; then
/aosp_15_r20/external/perfetto/src/base/http/
H A Dhttp_server.cc444 const char* http_code, in SendResponseHeaders() argument
459 append(http_code); in SendResponseHeaders()
511 const char* http_code, in SendResponse() argument
517 SendResponseHeaders(http_code, headers, content.size()); in SendResponse()
/aosp_15_r20/external/curl/tests/data/
H A Dtest1531 http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER --write-out "%{url_effective} %{http_code} %{size_downloa…
H A Dtest99039 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%output{%LOGDIR/output}%{http_code}\n'
H A Dtest99142 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%output{>>%LOGDIR/output}%{http_code}'
H A Dtest21735 …th/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}…
H A Dtest97263 …:0,"filename_effective":"%LOGDIR/out%TESTNUMBER","ftp_entry_path":null,"http_code":200,"http_conne…
H A Dtest97062 …:0,"filename_effective":"%LOGDIR/out%TESTNUMBER","ftp_entry_path":null,"http_code":200,"http_conne…
/aosp_15_r20/external/curl/docs/cmdline-opts/
H A Dwrite-out.md99 ## `http_code`
172 known as "http_code"). (Added in 7.18.2)
/aosp_15_r20/external/elfutils/debuginfod/
H A Ddebuginfod.cxx2770 int http_code = 500; in handler_cb() local
2863 http_code = MHD_HTTP_OK; in handler_cb()
2870 http_code = e.code; in handler_cb()
2881 << ' ' << http_code << ' ' << http_size in handler_cb()
2886 string http_code_str = to_string(http_code); in handler_cb()