Home
last modified time | relevance | path

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

/trusted-services/components/service/locator/remote/restapi/
A Drestapi_location_strategy.c31 long http_code = 0; in probe_api_server() local
33 if (http_caller_probe(RESTAPI_LOCATOR_API_URL, &http_code)) in probe_api_server()
37 if (http_code == 0) { in probe_api_server()
46 EMSG("API server HTTP error: %ld", http_code); in probe_api_server()
84 long http_code = 0; in query() local
88 if (!http_caller_probe(service_url, &http_code)) { in query()
89 if (http_code != 404) in query()
90 EMSG("Unexpected HTTP error: %ld", http_code); in query()
/trusted-services/components/rpc/http/caller/test/
A Dhttp_caller_tests.cpp37 long http_code = 0; in TEST() local
39 CHECK_TRUE(http_caller_probe(RESTAPI_LOCATOR_API_URL, &http_code)); in TEST()
40 LONGS_EQUAL(200, http_code); in TEST()
45 long http_code = 0; in TEST() local
47 CHECK_FALSE(http_caller_probe("http://127.0.0.1:5001/", &http_code)); in TEST()
48 LONGS_EQUAL(0, http_code); in TEST()
/trusted-services/components/rpc/http/caller/
A Dhttp_caller.c68 static bool send_head_request(const char *url, struct payload_buffer *response_buf, long *http_code) in send_head_request() argument
76 *http_code = 0; in send_head_request()
88 status = curl_easy_getinfo(curl_session, CURLINFO_RESPONSE_CODE, http_code); in send_head_request()
89 is_success = (status == CURLE_OK) && (*http_code >= 200) && in send_head_request()
90 (*http_code < 300); in send_head_request()
126 long http_code = 0; in send_put_request() local
129 curl_easy_getinfo(curl_session, CURLINFO_RESPONSE_CODE, &http_code); in send_put_request()
130 is_success = (status == CURLE_OK) && (http_code >= 200) && in send_put_request()
131 (http_code < 300); in send_put_request()
199 bool http_caller_probe(const char *url, long *http_code) in http_caller_probe() argument
[all …]
A Dhttp_caller.h41 bool http_caller_probe(const char *url, long *http_code);

Completed in 11 milliseconds