/foundation/communication/netstack/test/unittest/http/cache/ |
H A D | HttpCacheStrategyTest.cpp | 46 HttpResponse response; in HWTEST_F() local 47 response.SetResponseCode(200); in HWTEST_F() 48 response.SetResponseTime("Fri, 20 May 2022 09:36:59 GMT"); in HWTEST_F() 49 auto &responseHeader = const_cast<std::map<std::string, std::string> &>(response.GetHeader()); in HWTEST_F() 53 CacheStatus status = cacheStrategy.RunStrategy(response); in HWTEST_F() 65 HttpResponse response; in HWTEST_F() local 66 response.SetResponseCode(200); in HWTEST_F() 67 response.SetResponseTime("Fri, 20 May 2022 09:36:59 GMT"); in HWTEST_F() 68 auto &responseHeader = const_cast<std::map<std::string, std::string> &>(response.GetHeader()); in HWTEST_F() 74 CacheStatus status = cacheStrategy.RunStrategy(response); in HWTEST_F() 86 HttpResponse response; HWTEST_F() local 105 HttpResponse response; HWTEST_F() local 124 HttpResponse response; HWTEST_F() local 143 HttpResponse response; HWTEST_F() local 162 HttpResponse response; HWTEST_F() local 182 HttpResponse response; HWTEST_F() local 202 HttpResponse response; HWTEST_F() local 221 HttpResponse response; HWTEST_F() local 239 HttpResponse response; HWTEST_F() local 257 HttpResponse response; HWTEST_F() local 277 HttpResponse response; HWTEST_F() local 298 HttpResponse response; HWTEST_F() local 317 HttpResponse response; HWTEST_F() local 336 HttpResponse response; HWTEST_F() local 355 HttpResponse response; HWTEST_F() local 375 HttpResponse response; HWTEST_F() local 396 HttpResponse response; HWTEST_F() local 419 HttpResponse response; HWTEST_F() local 439 HttpResponse response; HWTEST_F() local 460 HttpResponse response; HWTEST_F() local 482 HttpResponse response; switchTest() local 521 HttpResponse response; HWTEST_F() local 543 HttpResponse response; HWTEST_F() local 564 HttpResponse response; HWTEST_F() local 585 HttpResponse response; HWTEST_F() local 605 HttpResponse response; HWTEST_F() local 620 HttpResponse response; HWTEST_F() local 636 HttpResponse response; HWTEST_F() local 653 HttpResponse response; HWTEST_F() local 674 HttpResponse response; HWTEST_F() local 694 HttpResponse response; HWTEST_F() local 714 HttpResponse response; HWTEST_F() local 735 HttpResponse response; HWTEST_F() local 756 HttpResponse response; HWTEST_F() local 777 HttpResponse response; HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/session/ |
H A D | wfd_message_test.cpp | 43 WfdRtspM1Response response(1, RTSP_STATUS_OK); in HWTEST_F() 48 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 49 std::string rspStr = response.Stringify(); in HWTEST_F() 57 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 58 response.SetVideoFormats(VIDEO_1920X1080_30); in HWTEST_F() 63 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 64 response.SetVideoFormats(VIDEO_1920X1080_25); in HWTEST_F() 69 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 70 response.SetVideoFormats(VIDEO_1280X720_30); in HWTEST_F() 75 WfdRtspM3Response response( in HWTEST_F() 166 WfdRtspM3Response response; HWTEST_F() local 177 WfdRtspM3Response response; HWTEST_F() local 188 WfdRtspM3Response response; HWTEST_F() local 385 WfdRtspM6Response response; HWTEST_F() local 394 WfdRtspM6Response response; HWTEST_F() local 405 WfdRtspM6Response response; HWTEST_F() local 415 WfdRtspM6Response response; HWTEST_F() local 424 WfdRtspM6Response response; HWTEST_F() local [all...] |
H A D | wfd_source_session_test.cpp | 242 RtspResponse response; in HWTEST_F() local 243 std::string rspMsg(response.Stringify()); in HWTEST_F() 381 RtspResponse response(session_->cseq_, RTSP_STATUS_OK); in HWTEST_F() 382 response.SetSession(session_->sessionID_); in HWTEST_F() 385 bool ret = session_->HandleResponse(response, message, session); in HWTEST_F() 394 RtspResponse response(session_->cseq_, RTSP_STATUS_OK); in HWTEST_F() 395 response.SetSession(session_->sessionID_); in HWTEST_F() 399 bool ret = session_->HandleResponse(response, message, session); in HWTEST_F() 410 WfdRtspM3Response response(session_->cseq_, RTSP_STATUS_OK); in HWTEST_F() 411 response in HWTEST_F() [all...] |
/foundation/ai/ai_engine/services/server/communication_adapter/source/ |
H A D | client_listener_handler.cpp | 45 void AsyncProcessWorker::IpcIoResponse(IResponse *response, IpcIo &io, char *data, int length) in IpcIoResponse() argument 47 if (response == nullptr) { in IpcIoResponse() 48 HILOGE("[ClientListenerHandler]Input param response is nullptr."); in IpcIoResponse() 53 int retCode = response->GetRetCode(); in IpcIoResponse() 56 int requestId = response->GetRequestId(); in IpcIoResponse() 59 long long transactionId = response->GetTransactionId(); in IpcIoResponse() 63 DataInfo result = response->GetResult(); in IpcIoResponse() 64 ParcelDataInfo(&io, &result, response->GetClientUid()); in IpcIoResponse() 69 IResponse *response = handler_->FetchCallbackRecord(); in OneAction() local 70 CHK_RET(response in OneAction() 118 IResponse *response = nullptr; FetchCallbackRecord() local 143 AddCallbackRecord(IResponse *response) AddCallbackRecord() argument [all...] |
/foundation/CastEngine/castengine_wifi_display/tests/unittest/protocol/rtsp/ |
H A D | rtsp_unit_test.cpp | 199 "Digest username=\"username\", realm=\"realm\", nonce=\"nonce\", uri=\"url\", response=\"00000000\""); in HWTEST_F() 347 auto response = std::make_shared<RtspResponse>(); in HWTEST_F() local 348 EXPECT_NE(response, nullptr); in HWTEST_F() 355 auto response = std::make_shared<RtspResponse>(cseq, status); in HWTEST_F() local 356 EXPECT_NE(response, nullptr); in HWTEST_F() 361 auto response = std::make_shared<RtspResponse>(); in HWTEST_F() local 362 EXPECT_NE(response, nullptr); in HWTEST_F() 364 response->AddCustomHeader(header); in HWTEST_F() 365 EXPECT_EQ(header, response->customHeaders_); in HWTEST_F() 366 response in HWTEST_F() 373 auto response = std::make_shared<RtspResponse>(); HWTEST_F() local 383 auto response = std::make_shared<RtspResponse>(); HWTEST_F() local 394 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 422 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 436 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 451 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 466 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 476 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 486 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 499 auto response = std::make_shared<RtspResponseOptions>(cseq, status); HWTEST_F() local 507 auto response = std::make_shared<RtspResponseOptions>(cseq, status); HWTEST_F() local 518 auto response = std::make_shared<RtspResponseOptions>(cseq, status); HWTEST_F() local 528 auto response = std::make_shared<RtspResponseDescribe>(cseq, status); HWTEST_F() local 538 auto response = std::make_shared<RtspResponseDescribe>(cseq, status); HWTEST_F() local 549 auto response = std::make_shared<RtspResponseDescribe>(cseq, status); HWTEST_F() local 560 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 570 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 581 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 592 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 604 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 617 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 630 auto response = std::make_shared<RtspResponsePlay>(cseq, status); HWTEST_F() local 638 auto response = std::make_shared<RtspResponseTeardown>(cseq, status); HWTEST_F() local 646 auto response = std::make_shared<RtspResponseGetParameter>(cseq, status); HWTEST_F() local 656 auto response = std::make_shared<RtspResponseGetParameter>(cseq, status); HWTEST_F() local 667 auto response = std::make_shared<RtspResponseSetParameter>(cseq, status); HWTEST_F() local [all...] |
/foundation/ai/ai_engine/services/server/server_executor/source/ |
H A D | sync_msg_handler.cpp | 43 IResponse *response = nullptr; in Process() local 44 int processRetCode = pluginAlgorithm_->SyncProcess(request, response); in Process() 46 if (response == nullptr) { in Process() 47 response = IResponse::Create(task.request); in Process() 48 CHK_RET(response == nullptr, RETCODE_OUT_OF_MEMORY); in Process() 52 response->SetRetCode(RETCODE_ALGORITHM_PROCESS_ERROR); in Process() 54 response->SetRetCode(RETCODE_SUCCESS); in Process() 58 (task.notifier)->AddToBack(response); in Process() 60 IResponse::Destroy(response); in Process() 97 IResponse *&response) in ReceiveResponse() 96 ReceiveResponse(int timeOut, SimpleEventNotifier<IResponse> ¬ifier, IResponse *&response) ReceiveResponse() argument [all...] |
H A D | future_factory.cpp | 155 int FutureFactory::ProcessResponse(PluginEvent event, IResponse *response) in ProcessResponse() argument 157 CHK_RET(response == nullptr, RETCODE_NULL_PARAM); in ProcessResponse() 159 Response *res = reinterpret_cast<Response *>(response); in ProcessResponse() 168 future->SetResponse(status, response); in ProcessResponse() 170 IFutureListener *listener = FindListener(response->GetTransactionId()); in ProcessResponse() 172 HILOGE("[FutureFactory][transactionId:%lld]No matched listener found.", response->GetTransactionId()); in ProcessResponse() 183 Future *FutureFactory::FetchFuture(Response *response) in FetchFuture() argument 185 long long sequenceId = response->GetInnerSequenceId(); in FetchFuture()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_animation_timing_curve.cpp | 61 RSAnimationTimingCurve::RSAnimationTimingCurve(float response, float dampingRatio, float blendDuration) in RSAnimationTimingCurve() argument 62 : type_(CurveType::SPRING), response_(response), dampingRatio_(dampingRatio), blendDuration_(blendDuration), in RSAnimationTimingCurve() 67 float response, float dampingRatio, float initialVelocity, CurveType curveType, float minimumAmplitudeRatio) in RSAnimationTimingCurve() 68 : type_(curveType), response_(response), dampingRatio_(dampingRatio), initialVelocity_(initialVelocity), in RSAnimationTimingCurve() 86 constexpr float response = 0.55f; in CreateSpringCurve() local 89 return RSAnimationTimingCurve(std::make_shared<RSSpringInterpolator>(response, dampingRatio, velocity)); in CreateSpringCurve() 91 float response = 2 * PI * sqrt(mass / stiffness); in CreateSpringCurve() local 93 return RSAnimationTimingCurve(std::make_shared<RSSpringInterpolator>(response, dampingRatio, velocity)); in CreateSpringCurve() 100 constexpr float response = 0.55f; in CreateInterpolatingSpring() local 104 response, dampingRati in CreateInterpolatingSpring() 66 RSAnimationTimingCurve( float response, float dampingRatio, float initialVelocity, CurveType curveType, float minimumAmplitudeRatio) RSAnimationTimingCurve() argument 106 float response = 2 * PI * sqrt(mass / stiffness); CreateInterpolatingSpring() local 117 CreateSpring(float response, float dampingRatio, float blendDuration) CreateSpring() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_spring_interpolator.cpp | 26 RSSpringInterpolator::RSSpringInterpolator(float response, float dampingRatio, float initialVelocity) in RSSpringInterpolator() argument 28 : RSSpringModel<float>(response, dampingRatio, -1, initialVelocity, 0.0001) in RSSpringInterpolator() 33 RSSpringInterpolator::RSSpringInterpolator(uint64_t id, float response, float dampingRatio, float initialVelocity) in RSSpringInterpolator() argument 35 : RSSpringModel<float>(response, dampingRatio, -1, initialVelocity, 0.0001), RSInterpolator(id) in RSSpringInterpolator() 60 float response, dampingRatio, initialVelocity; in Unmarshalling() local 61 if (!(parcel.ReadFloat(response) && parcel.ReadFloat(dampingRatio) && parcel.ReadFloat(initialVelocity))) { in Unmarshalling() 65 auto ret = new RSSpringInterpolator(id, response, dampingRatio, initialVelocity); in Unmarshalling()
|
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | message.c | 49 int32 SAMGR_SendResponse(const Request *request, const Response *response)
in SAMGR_SendResponse() argument 66 exchange->response.data = NULL;
in SAMGR_SendResponse() 67 exchange->response.len = 0;
in SAMGR_SendResponse() 68 if (response != NULL) {
in SAMGR_SendResponse() 69 exchange->response = *response;
in SAMGR_SendResponse() 72 // If there is no task queue, we will call the response processor in current task.
in SAMGR_SendResponse() 74 exchange->handler(&exchange->request, &exchange->response);
in SAMGR_SendResponse() 81 exchange->handler(&exchange->request, &exchange->response);
in SAMGR_SendResponse() 111 if (exchange->response in SAMGR_FreeMsg() 164 SAMGR_SendResponseByIdentity(const Identity *id, const Request *request, const Response *response) SAMGR_SendResponseByIdentity() argument [all...] |
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/mock_http_client/ |
H A D | http_client_task.h | 70 const std::function<void(const HttpClientRequest& request, const HttpClientResponse& response)>& onSucceeded) in OnSuccess() 77 const std::function<void(const HttpClientRequest& request, const HttpClientResponse& response)>& onCanceled) in OnCancel() 83 virtual void OnFail(const std::function<void(const HttpClientRequest& request, const HttpClientResponse& response, in OnFail() argument 96 virtual void SetResponse(const HttpClientResponse& response) in SetResponse() argument 98 response_ = response; in SetResponse() 108 static void MockResponse(HttpClientResponse& response) in MockResponse() argument 110 response_ = response; in MockResponse() 121 std::function<void(const HttpClientRequest& request, const HttpClientResponse& response)> onSucceeded_; 122 std::function<void(const HttpClientRequest& request, const HttpClientResponse& response)> onCanceled_; 124 const HttpClientRequest& request, const HttpClientResponse& response, cons [all...] |
/foundation/bundlemanager/app_domain_verify/test/unittest/frameworks_common/httpsession_test/ |
H A D | app_domain_verify_task_mgr_test.cpp | 103 HttpClientResponse response; in HWTEST_F() local 104 response.result_ = ""; in HWTEST_F() 107 clientTask->SetResponse(response); in HWTEST_F() 130 HttpClientResponse response; in HWTEST_F() local 131 response.result_ = ""; in HWTEST_F() 134 clientTask->SetResponse(response); in HWTEST_F() 157 HttpClientResponse response; in HWTEST_F() local 158 response.result_ = ""; in HWTEST_F() 161 clientTask->SetResponse(response); in HWTEST_F() 184 HttpClientResponse response; in HWTEST_F() local 232 HttpClientResponse response; HWTEST_F() local [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched_executor/interfaces/innerkits/ressched_executor_client/src/ |
H A D | res_sched_exe_service_proxy.cpp | 39 MessageParcel response; in SendRequestSync() local 40 int32_t error = Remote()->SendRequest(ResIpcType::REQUEST_SEND_SYNC, data, response, option); in SendRequestSync() 46 int32_t ret = response.ReadInt32(); in SendRequestSync() 48 ResSchedExeCommonUtils::StringToJson(response.ReadString(), reply); in SendRequestSync() 63 MessageParcel response; in SendRequestAsync() local 64 int32_t error = Remote()->SendRequest(ResIpcType::REQUEST_SEND_ASYNC, data, response, option); in SendRequestAsync() 80 MessageParcel response; in KillProcess() local 81 int32_t error = Remote()->SendRequest(ResIpcType::REQUEST_KILL_PROCESS, data, response, option); in KillProcess() 87 return response.ReadInt32(); in KillProcess() 113 MessageParcel response; in SendDebugCommand() local [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/ |
H A D | cast_local_file_channel_common.cpp | 248 bool ParseHttpResponse(const uint8_t *buffer, int length, std::map<std::string, std::string> &response, in ParseHttpResponse() argument 257 // Process http response line in ParseHttpResponse() 263 response.insert({ HTTP_RSP_PROTOCOL, rspList[HTTP_RSP_PRO_IDX] }); in ParseHttpResponse() 264 response.insert({ HTTP_RSP_CODE, rspList[HTTP_RSP_CODE_IDX] }); in ParseHttpResponse() 267 ParseHttpHeaderList(hdrList, response); in ParseHttpResponse() 270 if (response.find(CONTENT_LENGTH) == response.end()) { in ParseHttpResponse() 273 if (response.find(CONTENT_RANGE) == response.end()) { in ParseHttpResponse() 277 response in ParseHttpResponse() [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/ |
H A D | cast_local_file_channel_common.cpp | 248 bool ParseHttpResponse(const uint8_t *buffer, int length, std::map<std::string, std::string> &response, in ParseHttpResponse() argument 257 // Process http response line in ParseHttpResponse() 263 response.insert({ HTTP_RSP_PROTOCOL, rspList[HTTP_RSP_PRO_IDX] }); in ParseHttpResponse() 264 response.insert({ HTTP_RSP_CODE, rspList[HTTP_RSP_CODE_IDX] }); in ParseHttpResponse() 267 ParseHttpHeaderList(hdrList, response); in ParseHttpResponse() 270 if (response.find(CONTENT_LENGTH) == response.end()) { in ParseHttpResponse() 273 if (response.find(CONTENT_RANGE) == response.end()) { in ParseHttpResponse() 277 response in ParseHttpResponse() [all...] |
/foundation/communication/netstack/test/unittest/utils/profiler_utils/ |
H A D | NetstackNetworkProfilerUtilsTest.cpp | 122 Http::HttpResponse response{}; in HWTEST_F() 124 HttpNetworkMessage httpMsg(REQUEST_ID, request, response, GetCurlHandle()); in HWTEST_F() 132 Http::HttpResponse response{}; in HWTEST_F() 133 HttpNetworkMessage httpMsg(REQUEST_ID, request, response, GetCurlHandle()); in HWTEST_F() 141 Http::HttpResponse response{}; in HWTEST_F() 142 HttpNetworkMessage httpMsg(REQUEST_ID, request, response, nullptr); in HWTEST_F() 151 HttpClient::HttpClientResponse response{}; in HWTEST_F() 153 HttpClientNetworkMessage httpClientMsg(REQUEST_ID, request, response, GetCurlHandle()); in HWTEST_F() 161 HttpClient::HttpClientResponse response{}; in HWTEST_F() 162 HttpClientNetworkMessage httpClientMsg(REQUEST_ID, request, response, GetCurlHandl in HWTEST_F() [all...] |
/foundation/communication/netstack/frameworks/cj/http/src/ |
H A D | net_http_cache_strategy.cpp | 45 CacheStatus HttpCacheStrategy::RunStrategy(HttpResponse &response) in RunStrategy() argument 47 cacheResponse_.ParseCacheResponseHeader(response.GetHeader()); in RunStrategy() 48 cacheResponse_.SetRespCode(static_cast<ResponseCode>(response.GetResponseCode())); in RunStrategy() 49 cacheResponse_.SetResponseTime(response.GetResponseTime()); in RunStrategy() 50 cacheResponse_.SetRequestTime(response.GetRequestTime()); in RunStrategy() 51 return RunStrategyInternal(response); in RunStrategy() 54 bool HttpCacheStrategy::IsCacheable(const HttpResponse &response) in IsCacheable() argument 60 tempCacheResponse.ParseCacheResponseHeader(response.GetHeader()); in IsCacheable() 61 tempCacheResponse.SetRespCode(static_cast<ResponseCode>(response.GetResponseCode())); in IsCacheable() 85 The current value of the clock at the host at the time the request resulting in the stored response wa in CacheResponseAgeMillis() 245 RunStrategyInternal(HttpResponse &response) RunStrategyInternal() argument [all...] |
H A D | net_http_cache_proxy.cpp | 77 context->response = cachedResponse; in ReadResponseFromCache() 90 void CacheProxy::WriteResponseToCache(const HttpResponse &response) in WriteResponseToCache() argument 96 if (!strategy_.IsCacheable(response)) { in WriteResponseToCache() 97 NETSTACK_LOGE("do not cache this response"); in WriteResponseToCache() 101 cacheResponse[RESPONSE_KEY_HEADER] = Encode(response.GetRawHeader()); in WriteResponseToCache() 102 cacheResponse[RESPONSE_KEY_RESULT] = Encode(response.GetResult()); in WriteResponseToCache() 103 cacheResponse[RESPONSE_KEY_COOKIES] = Encode(response.GetCookies()); in WriteResponseToCache() 104 cacheResponse[RESPONSE_TIME] = Encode(response.GetResponseTime()); in WriteResponseToCache() 105 cacheResponse[REQUEST_TIME] = Encode(response.GetRequestTime()); in WriteResponseToCache()
|
/foundation/communication/netstack/test/unittest/websocket_test/ |
H A D | NetstackNetworkProfilerUtilsTest.cpp | 122 Http::HttpResponse response{};
in HWTEST_F() 124 HttpNetworkMessage httpMsg(REQUEST_ID, request, response, GetCurlHandle());
in HWTEST_F() 132 Http::HttpResponse response{};
in HWTEST_F() 133 HttpNetworkMessage httpMsg(REQUEST_ID, request, response, GetCurlHandle());
in HWTEST_F() 141 Http::HttpResponse response{};
in HWTEST_F() 142 HttpNetworkMessage httpMsg(REQUEST_ID, request, response, nullptr);
in HWTEST_F() 151 HttpClient::HttpClientResponse response{};
in HWTEST_F() 153 HttpClientNetworkMessage httpClientMsg(REQUEST_ID, request, response, GetCurlHandle());
in HWTEST_F() 161 HttpClient::HttpClientResponse response{};
in HWTEST_F() 162 HttpClientNetworkMessage httpClientMsg(REQUEST_ID, request, response, GetCurlHandl in HWTEST_F() [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/ |
H A D | http_cache_strategy.cpp | 48 CacheStatus HttpCacheStrategy::RunStrategy(HttpResponse &response) in RunStrategy() argument 50 cacheResponse_.ParseCacheResponseHeader(response.GetHeader()); in RunStrategy() 51 cacheResponse_.SetRespCode(static_cast<ResponseCode>(response.GetResponseCode())); in RunStrategy() 52 cacheResponse_.SetResponseTime(response.GetResponseTime()); in RunStrategy() 53 cacheResponse_.SetRequestTime(response.GetRequestTime()); in RunStrategy() 54 return RunStrategyInternal(response); in RunStrategy() 57 bool HttpCacheStrategy::IsCacheable(const HttpResponse &response) in IsCacheable() argument 63 tempCacheResponse.ParseCacheResponseHeader(response.GetHeader()); in IsCacheable() 64 tempCacheResponse.SetRespCode(static_cast<ResponseCode>(response.GetResponseCode())); in IsCacheable() 88 The current value of the clock at the host at the time the request resulting in the stored response wa in CacheResponseAgeMillis() 247 RunStrategyInternal(HttpResponse &response) RunStrategyInternal() argument [all...] |
/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/ |
H A D | verify_http_task.cpp | 43 void VerifyHttpTask::OnSuccess(const HttpClientRequest& request, const HttpClientResponse& response) in OnSuccess() argument 47 verifyTask_->OnPostVerify(uri_, response); in OnSuccess() 51 const HttpClientRequest& request, const HttpClientResponse& response, const HttpClientError& error) in OnFail() 55 verifyTask_->OnPostVerify(uri_, response); in OnFail() 58 void VerifyHttpTask::OnCancel(const HttpClientRequest& request, const HttpClientResponse& response) in OnCancel() argument 62 verifyTask_->OnPostVerify(uri_, response); in OnCancel() 50 OnFail( const HttpClientRequest& request, const HttpClientResponse& response, const HttpClientError& error) OnFail() argument
|
/foundation/arkui/ace_engine/frameworks/base/network/ |
H A D | download_manager_impl.cpp | 131 [downloadCondition, downloadResult](const NetStackRequest& request, const NetStackResponse& response) { 135 downloadResult->dataOut = std::move(response.GetResult()); 140 [downloadCondition, downloadResult](const NetStackRequest& request, const NetStackResponse& response) { 151 const NetStackRequest& request, const NetStackResponse& response, const NetStackError& error) { 156 downloadResult->errorMsg.append(" failed, response code "); 157 auto responseCode = response.GetResponseCode(); 182 instanceId](const NetStackRequest& request, const NetStackResponse& response) { 183 if (response.GetResponseCode() != NetStack::HttpClient::ResponseCode::OK) { 184 std::string errorMsg = "Http task of url " + request.GetURL() + " failed, response code " + 185 std::to_string(response 267 OnFail(std::shared_ptr<DownloadCondition> downloadCondition, const NetStackRequest& request, const NetStackResponse& response, const NetStackError& error) OnFail() argument [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/rtsp/src/ |
H A D | rtsp_controller.h | 38 bool OnResponse(RtspParse &response) override; 67 bool ProcessCommonResponse(RtspParse &response); 68 bool ProcessGetParamM3Response(RtspParse &response); 69 bool ProcessSetParamM4Response(RtspParse &response); 70 bool ProcessSetParamM5Response(RtspParse &response); 71 bool ProcessSetupM6Response(RtspParse &response); 72 bool ProcessPlayM7Response(RtspParse &response); 73 bool ProcessTearDownM8Response(RtspParse &response); 74 bool ProcessPauseM9Response(RtspParse &response); 75 bool ProcessKaResponse(RtspParse &response); [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/rtsp/src/ |
H A D | rtsp_controller.h | 38 bool OnResponse(RtspParse &response) override; 67 bool ProcessCommonResponse(RtspParse &response); 68 bool ProcessGetParamM3Response(RtspParse &response); 69 bool ProcessSetParamM4Response(RtspParse &response); 70 bool ProcessSetParamM5Response(RtspParse &response); 71 bool ProcessSetupM6Response(RtspParse &response); 72 bool ProcessPlayM7Response(RtspParse &response); 73 bool ProcessTearDownM8Response(RtspParse &response); 74 bool ProcessPauseM9Response(RtspParse &response); 75 bool ProcessKaResponse(RtspParse &response); [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_proxy/src/ |
H A D | cache_proxy.cpp | 88 context->response = cachedResponse; in ReadResponseFromCache() 101 void CacheProxy::WriteResponseToCache(const HttpResponse &response) in WriteResponseToCache() argument 107 if (!strategy_.IsCacheable(response)) { in WriteResponseToCache() 108 NETSTACK_LOGE("do not cache this response"); in WriteResponseToCache() 112 cacheResponse[HttpConstant::RESPONSE_KEY_HEADER] = Base64::Encode(response.GetRawHeader()); in WriteResponseToCache() 113 cacheResponse[HttpConstant::RESPONSE_KEY_RESULT] = Base64::Encode(response.GetResult()); in WriteResponseToCache() 114 cacheResponse[HttpConstant::RESPONSE_KEY_COOKIES] = Base64::Encode(response.GetCookies()); in WriteResponseToCache() 115 cacheResponse[HttpConstant::RESPONSE_TIME] = Base64::Encode(response.GetResponseTime()); in WriteResponseToCache() 116 cacheResponse[HttpConstant::REQUEST_TIME] = Base64::Encode(response.GetRequestTime()); in WriteResponseToCache()
|