Home
last modified time | relevance | path

Searched refs:responseCode (Results 1 – 25 of 67) sorted by relevance

123

/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/
H A Ddomain_verifier.cpp22 InnerVerifyStatus DomainVerifier::VerifyHost(OHOS::NetStack::HttpClient::ResponseCode responseCode, in VerifyHost() argument
26 if (responseCode != OHOS::NetStack::HttpClient::ResponseCode::OK) { in VerifyHost()
27 return GetVerifyStatusFromHttpError(responseCode); in VerifyHost()
41 …DomainVerifier::GetVerifyStatusFromHttpError(OHOS::NetStack::HttpClient::ResponseCode responseCode) in GetVerifyStatusFromHttpError() argument
44 if (responseCode >= OHOS::NetStack::HttpClient::ResponseCode::MULT_CHOICE && in GetVerifyStatusFromHttpError()
45 responseCode < OHOS::NetStack::HttpClient::ResponseCode::BAD_REQUEST) { in GetVerifyStatusFromHttpError()
49 if (responseCode >= OHOS::NetStack::HttpClient::ResponseCode::BAD_REQUEST && in GetVerifyStatusFromHttpError()
50 responseCode < OHOS::NetStack::HttpClient::ResponseCode::INTERNAL_ERROR) { in GetVerifyStatusFromHttpError()
54 if (responseCode >= OHOS::NetStack::HttpClient::ResponseCode::INTERNAL_ERROR) { in GetVerifyStatusFromHttpError()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_event.cpp158 uint16_t responseCode = EventPayloadData(code, eventPayloadData); in SendEvent() local
159 if (responseCode == MTP_UNDEFINED_CODE) { in SendEvent()
178 uint16_t responseCode = MTP_UNDEFINED_CODE; in EventPayloadData() local
180 responseCode, "EventPayloadData failed, mtpContextPtr_ is nullptr"); in EventPayloadData()
189 responseCode = handleptr_->ObjectEvent(data, mtpContextPtr_->eventHandle); in EventPayloadData()
192 responseCode = handleptr_->ObjectEvent(data, mtpContextPtr_->eventProperty); in EventPayloadData()
196 responseCode = handleptr_->ObjectEvent(data, mtpContextPtr_->storageInfoID); in EventPayloadData()
201 return responseCode; in EventPayloadData()
/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/verifier/include/
H A Ddomain_verifier.h28 static InnerVerifyStatus VerifyHost(OHOS::NetStack::HttpClient::ResponseCode responseCode,
32 …erVerifyStatus GetVerifyStatusFromHttpError(OHOS::NetStack::HttpClient::ResponseCode responseCode);
/ohos5.0/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Dresponse_message_receiver_test.cpp516 int32_t responseCode = NETWORK_OFFLINE; variable
523 …mcpy_s(except + pos, static_cast<size_t>(ARRAY_LEN - pos), reinterpret_cast<void *>(&responseCode),
524 sizeof(responseCode)),
526 pos += sizeof(responseCode);
546 EXPECT_EQ(taskStates[0].responseCode, responseCode);
572 int32_t responseCode = NETWORK_OFFLINE; variable
625 …mcpy_s(except + pos, static_cast<size_t>(ARRAY_LEN - pos), reinterpret_cast<void *>(&responseCode),
626 sizeof(responseCode)),
628 pos += sizeof(responseCode);
688 EXPECT_EQ(notifyData->taskStates[0].responseCode, responseCode);
H A Dparcel_helper_test.cpp181 uint32_t responseCode = 0; variable
186 data.WriteUint32(responseCode);
190 EXPECT_EQ(info.taskStates[0].responseCode, responseCode);
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/fetch/options/src/
H A Dfetch_response.cpp35 void FetchResponse::SetResponseCode(uint32_t responseCode) in SetResponseCode() argument
37 responseCode_ = responseCode; in SetResponseCode()
/ohos5.0/foundation/communication/netstack/frameworks/js/builtin/fetch/src/
H A Dhttp_request.cpp122 int32_t responseCode; in Request() local
123 ACE_CURL_EASY_GET_INFO(handle.get(), CURLINFO_RESPONSE_CODE, &responseCode, responseData); in Request()
125 responseData->SetCode(responseCode); in Request()
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dfetch_manager.cpp106 int32_t responseCode = HttpConstant::ERROR; in Fetch() local
107 curl_easy_getinfo(handle.get(), CURLINFO_RESPONSE_CODE, &responseCode); in Fetch()
108 responseData.SetCode(responseCode); in Fetch()
/ohos5.0/base/request/request/test/unittest/common/napi/requestTest/
H A DRequestUploadTest.js365 …", TaskState.responseCode: " + TaskState.responseCode + ", TaskState.message: " + TaskState.messag…
368 expect(typeof(TaskState.responseCode) == "number").assertEqual(true);
430 …+ ", path = " + tasks[0].path + ", responseCode" + tasks[0].responseCode + ", message = " + tasks[…
472 …+ ", path = " + tasks[0].path + ", responseCode" + tasks[0].responseCode + ", message = " + tasks[…
514 …+ ", path = " + tasks[0].path + ", responseCode" + tasks[0].responseCode + ", message = " + tasks[…
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_response.cpp35 void HttpResponse::SetResponseCode(uint32_t responseCode) in SetResponseCode() argument
37 responseCode_ = responseCode; in SetResponseCode()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/options/src/
H A Dhttp_response.cpp34 void HttpResponse::SetResponseCode(uint32_t responseCode) in SetResponseCode() argument
36 responseCode_ = responseCode; in SetResponseCode()
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_http_probe.cpp652 int64_t responseCode = 0; in RecvHttpProbeResponse() local
653 curl_easy_getinfo(curlMsg->easy_handle, CURLINFO_RESPONSE_CODE, &responseCode); in RecvHttpProbeResponse()
654 responseCode = CheckRespCode(responseCode); in RecvHttpProbeResponse()
666 httpProbeResult_ = {responseCode, redirectUrl}; in RecvHttpProbeResponse()
670 httpsProbeResult_ = {responseCode, redirectUrl}; in RecvHttpProbeResponse()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/fetch/fetch_exec/src/
H A Dfetch_exec.cpp96 int32_t responseCode; in ExecFetch() local
97 NETSTACK_CURL_EASY_GET_INFO(handle.get(), CURLINFO_RESPONSE_CODE, &responseCode, context); in ExecFetch()
98 NETSTACK_LOGI("Fetch responseCode is %{public}d", responseCode); in ExecFetch()
100 context->response.SetResponseCode(responseCode); in ExecFetch()
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dhow-to-load-images-from-internet.md70 let code = data.responseCode
143 let code = data.responseCode
/ohos5.0/base/request/request/frameworks/js/napi/include/upload/
H A Dupload_common.h43 int32_t responseCode{ UPLOAD_OK };
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/network/
H A Ddownload_manager_impl.cpp160 auto responseCode = response.GetResponseCode(); in Download() local
161 downloadResult->errorMsg.append(std::to_string(responseCode)); in Download()
292 auto responseCode = response.GetResponseCode(); in OnFail() local
293 downloadCondition->errorMsg.append(std::to_string(responseCode)); in OnFail()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/fetch/options/include/
H A Dfetch_response.h33 void SetResponseCode(uint32_t responseCode);
/ohos5.0/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/
H A Ddownloaduploadmanager_fuzzer.cpp749 int32_t responseCode = NETWORK_OFFLINE; in ResponseMessageFuzzTestTaskStatesFromParcel() local
762 …mcpy_s(except + pos, static_cast<size_t>(ARRAY_LEN - pos), reinterpret_cast<void *>(&responseCode), in ResponseMessageFuzzTestTaskStatesFromParcel()
763 sizeof(responseCode)); in ResponseMessageFuzzTestTaskStatesFromParcel()
767 pos += sizeof(responseCode); in ResponseMessageFuzzTestTaskStatesFromParcel()
807 int32_t responseCode = NETWORK_OFFLINE; in ResponseMessageFuzzTestNotifyDataFromParcel() local
888 …mcpy_s(except + pos, static_cast<size_t>(ARRAY_LEN - pos), reinterpret_cast<void *>(&responseCode), in ResponseMessageFuzzTestNotifyDataFromParcel()
889 sizeof(responseCode)); in ResponseMessageFuzzTestNotifyDataFromParcel()
893 pos += sizeof(responseCode); in ResponseMessageFuzzTestNotifyDataFromParcel()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/http_module/src/
H A Dhttp_module.cpp189 napi_value responseCode = NapiUtils::CreateObject(env); in InitResponseCode() local
190 NapiUtils::DefineProperties(env, responseCode, properties); in InitResponseCode()
192 NapiUtils::SetNamedProperty(env, exports, INTERFACE_RESPONSE_CODE, responseCode); in InitResponseCode()
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/include/
H A Dffi_structs.h99 uint32_t responseCode; member
H A Dnet_http_response.h36 void SetResponseCode(uint32_t responseCode);
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/options/include/
H A Dhttp_response.h36 void SetResponseCode(uint32_t responseCode);
/ohos5.0/foundation/communication/netstack/frameworks/native/http/http_client/
H A Dhttp_client_task.cpp600 int64_t responseCode = 0; in DumpHttpPerformance() local
601 (void)curl_easy_getinfo(curlHandle_, CURLINFO_RESPONSE_CODE, &responseCode); in DumpHttpPerformance()
630 … error_.GetErrorCode(), std::to_string(responseCode).c_str(), std::to_string(httpVer).c_str(), in DumpHttpPerformance()
/ohos5.0/foundation/communication/netstack/interfaces/kits/js/
H A D@ohos.net.http.d.ts2400 responseCode: ResponseCode | number;
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/
H A Dhttp_exec.cpp302 int64_t responseCode; in AddCurlHandle() local
303 CURLcode code = curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &responseCode); in AddCurlHandle()
308 context->response.SetResponseCode(responseCode); in AddCurlHandle()
309 NETSTACK_LOGD("responseCode is %{public}s", std::to_string(responseCode).c_str()); in AddCurlHandle()
377 int64_t responseCode = 0; in AddCurlHandle() local
378 (void)curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &responseCode); in AddCurlHandle()
407 context->IsExecOK() ? 0: context->GetErrorCode(), std::to_string(responseCode).c_str(), in AddCurlHandle()

123