/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/ |
H A D | domain_verifier.cpp | 22 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 D | mtp_event.cpp | 158 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 D | domain_verifier.h | 28 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 D | response_message_receiver_test.cpp | 516 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 D | parcel_helper_test.cpp | 181 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 D | fetch_response.cpp | 35 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 D | http_request.cpp | 122 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 D | fetch_manager.cpp | 106 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 D | RequestUploadTest.js | 365 …", 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 D | net_http_response.cpp | 35 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 D | http_response.cpp | 34 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 D | net_http_probe.cpp | 652 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 D | fetch_exec.cpp | 96 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 D | how-to-load-images-from-internet.md | 70 let code = data.responseCode 143 let code = data.responseCode
|
/ohos5.0/base/request/request/frameworks/js/napi/include/upload/ |
H A D | upload_common.h | 43 int32_t responseCode{ UPLOAD_OK };
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/network/ |
H A D | download_manager_impl.cpp | 160 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 D | fetch_response.h | 33 void SetResponseCode(uint32_t responseCode);
|
/ohos5.0/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/ |
H A D | downloaduploadmanager_fuzzer.cpp | 749 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 D | http_module.cpp | 189 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 D | ffi_structs.h | 99 uint32_t responseCode; member
|
H A D | net_http_response.h | 36 void SetResponseCode(uint32_t responseCode);
|
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/options/include/ |
H A D | http_response.h | 36 void SetResponseCode(uint32_t responseCode);
|
/ohos5.0/foundation/communication/netstack/frameworks/native/http/http_client/ |
H A D | http_client_task.cpp | 600 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.ts | 2400 responseCode: ResponseCode | number;
|
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/ |
H A D | http_exec.cpp | 302 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()
|