Home
last modified time | relevance | path

Searched refs:requestOptions (Results 1 - 24 of 24) sorted by relevance

/foundation/communication/netstack/test/unittest/http/cache/
H A DHttpCacheStrategyTest.cpp42 HttpRequestOptions requestOptions; in HWTEST_F() local
43 requestOptions.SetHeader("cache-control", "no-cache"); in HWTEST_F()
44 requestOptions.SetRequestTime("Fri, 20 May 2022 09:36:30 GMT"); in HWTEST_F()
52 HttpCacheStrategy cacheStrategy(requestOptions); in HWTEST_F()
61 HttpRequestOptions requestOptions; in HWTEST_F() local
62 requestOptions.SetHeader("cache-control", "min-fresh=20"); in HWTEST_F()
63 requestOptions.SetRequestTime("Fri, 20 May 2022 09:36:30 GMT"); in HWTEST_F()
73 HttpCacheStrategy cacheStrategy(requestOptions); in HWTEST_F()
82 HttpRequestOptions requestOptions; in HWTEST_F() local
83 requestOptions in HWTEST_F()
101 HttpRequestOptions requestOptions; HWTEST_F() local
120 HttpRequestOptions requestOptions; HWTEST_F() local
139 HttpRequestOptions requestOptions; HWTEST_F() local
158 HttpRequestOptions requestOptions; HWTEST_F() local
177 HttpRequestOptions requestOptions; HWTEST_F() local
197 HttpRequestOptions requestOptions; HWTEST_F() local
217 HttpRequestOptions requestOptions; HWTEST_F() local
236 HttpRequestOptions requestOptions; HWTEST_F() local
254 HttpRequestOptions requestOptions; HWTEST_F() local
273 HttpRequestOptions requestOptions; HWTEST_F() local
294 HttpRequestOptions requestOptions; HWTEST_F() local
313 HttpRequestOptions requestOptions; HWTEST_F() local
332 HttpRequestOptions requestOptions; HWTEST_F() local
351 HttpRequestOptions requestOptions; HWTEST_F() local
371 HttpRequestOptions requestOptions; HWTEST_F() local
392 HttpRequestOptions requestOptions; HWTEST_F() local
415 HttpRequestOptions requestOptions; HWTEST_F() local
435 HttpRequestOptions requestOptions; HWTEST_F() local
456 HttpRequestOptions requestOptions; HWTEST_F() local
478 HttpRequestOptions requestOptions; switchTest() local
517 HttpRequestOptions requestOptions; HWTEST_F() local
539 HttpRequestOptions requestOptions; HWTEST_F() local
560 HttpRequestOptions requestOptions; HWTEST_F() local
581 HttpRequestOptions requestOptions; HWTEST_F() local
602 HttpRequestOptions requestOptions; HWTEST_F() local
618 HttpRequestOptions requestOptions; HWTEST_F() local
633 HttpRequestOptions requestOptions; HWTEST_F() local
649 HttpRequestOptions requestOptions; HWTEST_F() local
670 HttpRequestOptions requestOptions; HWTEST_F() local
690 HttpRequestOptions requestOptions; HWTEST_F() local
710 HttpRequestOptions requestOptions; HWTEST_F() local
731 HttpRequestOptions requestOptions; HWTEST_F() local
752 HttpRequestOptions requestOptions; HWTEST_F() local
773 HttpRequestOptions requestOptions; HWTEST_F() local
[all...]
/foundation/communication/netstack/test/unittest/http/
H A DHttpRequestOptionsTest.cpp47 HttpRequestOptions requestOptions; in HWTEST_F() local
49 string path = requestOptions.GetCaPath(); in HWTEST_F()
55 HttpRequestOptions requestOptions; in HWTEST_F() local
57 requestOptions.SetCaPath(""); in HWTEST_F()
58 string path = requestOptions.GetCaPath(); in HWTEST_F()
64 HttpRequestOptions requestOptions; in HWTEST_F() local
66 requestOptions.SetCaPath(OTHER_CA_PATH); in HWTEST_F()
67 string path = requestOptions.GetCaPath(); in HWTEST_F()
73 HttpRequestOptions requestOptions; in HWTEST_F() local
76 requestOptions in HWTEST_F()
84 HttpRequestOptions requestOptions; HWTEST_F() local
95 HttpRequestOptions requestOptions; HWTEST_F() local
108 HttpRequestOptions requestOptions; HWTEST_F() local
121 HttpRequestOptions requestOptions; HWTEST_F() local
134 HttpRequestOptions requestOptions; HWTEST_F() local
147 HttpRequestOptions requestOptions; HWTEST_F() local
171 HttpRequestOptions requestOptions; HWTEST_F() local
195 HttpRequestOptions requestOptions; HWTEST_F() local
205 HttpRequestOptions requestOptions; HWTEST_F() local
215 HttpRequestOptions requestOptions; HWTEST_F() local
225 HttpRequestOptions requestOptions; HWTEST_F() local
235 HttpRequestOptions requestOptions; HWTEST_F() local
245 HttpRequestOptions requestOptions; HWTEST_F() local
255 HttpRequestOptions requestOptions; HWTEST_F() local
265 HttpRequestOptions requestOptions; HWTEST_F() local
275 HttpRequestOptions requestOptions; HWTEST_F() local
285 HttpRequestOptions requestOptions; HWTEST_F() local
295 HttpRequestOptions requestOptions; HWTEST_F() local
310 HttpRequestOptions requestOptions; HWTEST_F() local
320 HttpRequestOptions requestOptions; HWTEST_F() local
[all...]
/foundation/communication/netstack/test/fuzztest/http_fuzzer/
H A Dhttp_fuzzer.cpp85 HttpRequestOptions requestOptions; in SetCaPathFuzzTest() local
86 requestOptions.SetCaPath(str); in SetCaPathFuzzTest()
95 HttpRequestOptions requestOptions; in SetUrlFuzzTest() local
97 requestOptions.SetUrl(str); in SetUrlFuzzTest()
106 HttpRequestOptions requestOptions; in SetMethodFuzzTest() local
108 requestOptions.SetMethod(str); in SetMethodFuzzTest()
117 HttpRequestOptions requestOptions; in SetHeaderFuzzTest() local
119 requestOptions.SetHeader(str, str); in SetHeaderFuzzTest()
128 HttpRequestOptions requestOptions; in SetReadTimeoutFuzzTest() local
129 requestOptions in SetReadTimeoutFuzzTest()
138 HttpRequestOptions requestOptions; SetConnectTimeoutFuzzTest() local
148 HttpRequestOptions requestOptions; SetUsingProtocolFuzzTest() local
157 HttpRequestOptions requestOptions; SetHttpDataTypeFuzzTest() local
168 HttpRequestOptions requestOptions; SetUsingHttpProxyTypeFuzzTest() local
178 HttpRequestOptions requestOptions; SetSpecifiedHttpProxyFuzzTest() local
189 HttpRequestOptions requestOptions; SetDnsServersFuzzTest() local
202 HttpRequestOptions requestOptions; SetDohUrlFuzzTest() local
213 HttpRequestOptions requestOptions; SetRangeNumberFuzzTest() local
224 HttpRequestOptions requestOptions; SetClientCertFuzzTest() local
236 HttpRequestOptions requestOptions; AddMultiFormDataFuzzTest() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_asset_manager_test/src/
H A Dmedia_library_asset_manager_test.cpp264 MediaLibrary_RequestOptions requestOptions; in HWTEST_F() local
265 requestOptions.deliveryMode = MediaLibrary_DeliveryMode::MEDIA_LIBRARY_FAST_MODE; in HWTEST_F()
268 requestOptions, destUri.c_str(), callback); in HWTEST_F()
312 MediaLibrary_RequestOptions requestOptions; in HWTEST_F() local
313 requestOptions.deliveryMode = MediaLibrary_DeliveryMode::MEDIA_LIBRARY_HIGH_QUALITY_MODE; in HWTEST_F()
316 requestOptions, destUri.c_str(), callback); in HWTEST_F()
360 MediaLibrary_RequestOptions requestOptions; in HWTEST_F() local
361 requestOptions.deliveryMode = MediaLibrary_DeliveryMode::MEDIA_LIBRARY_BALANCED_MODE; in HWTEST_F()
364 requestOptions, destUri.c_str(), callback); in HWTEST_F()
397 MediaLibrary_RequestOptions requestOptions; in HWTEST_F() local
432 MediaLibrary_RequestOptions requestOptions; HWTEST_F() local
480 MediaLibrary_RequestOptions requestOptions; HWTEST_F() local
515 MediaLibrary_RequestOptions requestOptions; HWTEST_F() local
550 MediaLibrary_RequestOptions requestOptions; HWTEST_F() local
609 MediaLibrary_RequestOptions requestOptions; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/interfaces/kits/c/
H A Dmedia_asset_manager_capi.h64 * @param requestOptions Options model for requesting resource.
71 MediaLibrary_RequestOptions requestOptions, const char* destPath, OH_MediaLibrary_OnDataPrepared callback);
79 * @param requestOptions Options model for requesting resource.
86 MediaLibrary_RequestOptions requestOptions, const char* destPath, OH_MediaLibrary_OnDataPrepared callback);
105 * @param requestOptions the {@link MediaLibrary_RequestOptions} for image request strategy mode.
120 MediaLibrary_RequestOptions requestOptions, MediaLibrary_RequestId* requestId,
129 * @param requestOptions the {@link MediaLibrary_RequestOptions} for image request strategy mode.
144 MediaLibrary_RequestOptions requestOptions, MediaLibrary_RequestId* requestId,
/foundation/communication/netstack/interfaces/kits/c/net_websocket/src/
H A Dnet_websocket_adapter.cpp48 struct WebSocket_RequestOptions requestOptions) in Conv2RequestOptions()
54 struct WebSocket_Header *currentHeader = requestOptions.headers; in Conv2RequestOptions()
67 struct WebSocket_CloseOption requestOptions) in Conv2CloseOptions()
69 closeOption->code = requestOptions.code; in Conv2CloseOptions()
70 closeOption->reason = requestOptions.reason; in Conv2CloseOptions()
47 Conv2RequestOptions(struct OpenOptions *openOptions, struct WebSocket_RequestOptions requestOptions) Conv2RequestOptions() argument
66 Conv2CloseOptions(struct CloseOption *closeOption, struct WebSocket_CloseOption requestOptions) Conv2CloseOptions() argument
H A Dnet_websocket.cpp93 OH_client->requestOptions.headers = nullptr; in OH_WebSocketClient_Constructor()
111 struct WebSocket_Header *currentHeader = client->requestOptions.headers; in OH_WebSocketClient_AddHeader()
113 client->requestOptions.headers = newHeader.release(); in OH_WebSocketClient_AddHeader()
208 OH_WebSocketClient_FreeHeader(client->requestOptions.headers); in OH_WebSocketClient_Destroy()
/foundation/multimedia/media_library/frameworks/native/c_api/media_asset_manger_capi/
H A Dmedia_asset_manager_capi.cpp54 MediaLibrary_RequestOptions requestOptions, const char* destPath, OH_MediaLibrary_OnDataPrepared callback) in OH_MediaAssetManager_RequestImageForPath()
67 OH_MediaAssetManager_Convert(requestOptions, nativeRequestOptions); in OH_MediaAssetManager_RequestImageForPath()
78 MediaLibrary_RequestOptions requestOptions, const char* destPath, OH_MediaLibrary_OnDataPrepared callback) in OH_MediaAssetManager_RequestVideoForPath()
91 OH_MediaAssetManager_Convert(requestOptions, nativeRequestOptions); in OH_MediaAssetManager_RequestVideoForPath()
112 MediaLibrary_RequestOptions requestOptions, MediaLibrary_RequestId* requestId, in OH_MediaAssetManager_RequestImage()
125 OH_MediaAssetManager_Convert(requestOptions, nativeRequestOptions); in OH_MediaAssetManager_RequestImage()
130 MediaLibrary_RequestOptions requestOptions, MediaLibrary_RequestId* requestId, in OH_MediaAssetManager_RequestMovingPhoto()
143 OH_MediaAssetManager_Convert(requestOptions, nativeRequestOptions); in OH_MediaAssetManager_RequestMovingPhoto()
53 OH_MediaAssetManager_RequestImageForPath(OH_MediaAssetManager* manager, const char* uri, MediaLibrary_RequestOptions requestOptions, const char* destPath, OH_MediaLibrary_OnDataPrepared callback) OH_MediaAssetManager_RequestImageForPath() argument
77 OH_MediaAssetManager_RequestVideoForPath(OH_MediaAssetManager* manager, const char* uri, MediaLibrary_RequestOptions requestOptions, const char* destPath, OH_MediaLibrary_OnDataPrepared callback) OH_MediaAssetManager_RequestVideoForPath() argument
111 OH_MediaAssetManager_RequestImage(OH_MediaAssetManager* manager, OH_MediaAsset* mediaAsset, MediaLibrary_RequestOptions requestOptions, MediaLibrary_RequestId* requestId, OH_MediaLibrary_OnImageDataPrepared callback) OH_MediaAssetManager_RequestImage() argument
129 OH_MediaAssetManager_RequestMovingPhoto(OH_MediaAssetManager* manager, OH_MediaAsset* mediaAsset, MediaLibrary_RequestOptions requestOptions, MediaLibrary_RequestId* requestId, OH_MediaLibrary_OnMovingPhotoDataPrepared callback) OH_MediaAssetManager_RequestMovingPhoto() argument
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmedia_asset_manager_impl.h33 std::string NativeRequestImage(const char* photoUri, const NativeRequestOptions &requestOptions,
35 std::string NativeRequestVideo(const char* videoUri, const NativeRequestOptions &requestOptions,
40 NativeRequestOptions requestOptions, MediaLibrary_RequestId* requestId,
43 NativeRequestOptions requestOptions, MediaLibrary_RequestId* requestId,
H A Dmedia_asset_manager.h47 NativeRequestOptions requestOptions; member
87 virtual std::string NativeRequestImage(const char* photoUri, const NativeRequestOptions &requestOptions,
89 virtual std::string NativeRequestVideo(const char* videoUri, const NativeRequestOptions &requestOptions,
93 NativeRequestOptions requestOptions, MediaLibrary_RequestId* requestId,
96 NativeRequestOptions requestOptions, MediaLibrary_RequestId* requestId,
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_cache_proxy.cpp39 CacheProxy::CacheProxy(HttpRequest &requestOptions) : strategy_(requestOptions) in CacheProxy() argument
41 std::string str = requestOptions.GetUrl() + HTTP_LINE_SEPARATOR + in CacheProxy()
42 CommonUtils::ToLower(requestOptions.GetMethod()) + HTTP_LINE_SEPARATOR; in CacheProxy()
43 for (const auto &p : requestOptions.GetHeader()) { in CacheProxy()
46 str += std::to_string(requestOptions.GetHttpVersion()); in CacheProxy()
H A Dnet_http_cache_strategy.cpp32 HttpCacheStrategy::HttpCacheStrategy(HttpRequest &requestOptions) : requestOptions_(requestOptions) in HttpCacheStrategy() argument
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_proxy/src/
H A Dcache_proxy.cpp47 CacheProxy::CacheProxy(HttpRequestOptions &requestOptions) : strategy_(requestOptions) in CacheProxy() argument
49 std::string str = requestOptions.GetUrl() + HttpConstant::HTTP_LINE_SEPARATOR + in CacheProxy()
50 CommonUtils::ToLower(requestOptions.GetMethod()) + HttpConstant::HTTP_LINE_SEPARATOR; in CacheProxy()
51 for (const auto &p : requestOptions.GetHeader()) { in CacheProxy()
57 str += std::to_string(requestOptions.GetHttpVersion()); in CacheProxy()
/foundation/communication/netstack/interfaces/kits/c/net_websocket/include/
H A Dnet_websocket_adapter.h29 struct WebSocket_RequestOptions requestOptions);
31 struct WebSocket_CloseOption requestOptions);
H A Dnet_websocket_type.h178 WebSocket_RequestOptions requestOptions; member
/foundation/multimedia/media_library/frameworks/native/media_library_asset_manager/src/
H A Dmedia_asset_manager_impl.cpp229 asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
234 asyncContext->requestUri, asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
239 asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
392 const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) in NativeRequestImage()
408 asyncContext->requestOptions.deliveryMode = requestOptions.deliveryMode; in NativeRequestImage()
409 asyncContext->requestOptions.sourceMode = NativeSourceMode::EDITED_MODE; in NativeRequestImage()
435 const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) in NativeRequestVideo()
450 asyncContext->requestOptions.deliveryMode = requestOptions in NativeRequestVideo()
391 NativeRequestImage(const char* photoUri, const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) NativeRequestImage() argument
434 NativeRequestVideo(const char* videoUri, const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) NativeRequestVideo() argument
495 NativeRequestImageSource(OH_MediaAsset* mediaAsset, NativeRequestOptions requestOptions, MediaLibrary_RequestId* requestId, OH_MediaLibrary_OnImageDataPrepared callback) NativeRequestImageSource() argument
546 NativeRequestMovingPhoto(OH_MediaAsset* mediaAsset, NativeRequestOptions requestOptions, MediaLibrary_RequestId* requestId, OH_MediaLibrary_OnMovingPhotoDataPrepared callback) NativeRequestMovingPhoto() argument
[all...]
/foundation/communication/netstack/test/unittest/websocket_test/
H A Dwebsocket_capi_unittest.cpp59 OH_WebSocketClient_Connect(client, url1, client->requestOptions); in HWTEST_F()
81 ret = OH_WebSocketClient_Connect(client, url1, client->requestOptions); in HWTEST_F()
132 OH_WebSocketClient_Connect(client, url1, client->requestOptions); in HWTEST_F()
/foundation/communication/netstack/test/unittest/websocket_capi_unittest/
H A Dwebsocket_capi_unittest.cpp60 OH_WebSocketClient_Connect(client, url1, client->requestOptions); in HWTEST_F()
82 ret = OH_WebSocketClient_Connect(client, url1, client->requestOptions); in HWTEST_F()
133 OH_WebSocketClient_Connect(client, url1, client->requestOptions); in HWTEST_F()
/foundation/communication/netstack/frameworks/cj/http/include/
H A Dnet_http_cache_proxy.h31 explicit CacheProxy(HttpRequest &requestOptions);
H A Dnet_http_cache_strategy.h38 explicit HttpCacheStrategy(HttpRequest &requestOptions);
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_proxy/include/
H A Dcache_proxy.h29 explicit CacheProxy(HttpRequestOptions &requestOptions);
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/include/
H A Dhttp_cache_strategy.h39 explicit HttpCacheStrategy(HttpRequestOptions &requestOptions);
/foundation/communication/netstack/test/fuzztest/websocketcapi_fuzzer/
H A Dwebsocket_capi_fuzzer.cpp100 OH_WebSocketClient_Connect(client, url1, client->requestOptions); in SetRequestOptionsTest()
112 OH_WebSocketClient_Connect(client, url1, client->requestOptions); in SetConnectUrlTest()
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/
H A Dhttp_cache_strategy.cpp35 HttpCacheStrategy::HttpCacheStrategy(HttpRequestOptions &requestOptions) : requestOptions_(requestOptions) in HttpCacheStrategy() argument

Completed in 13 milliseconds