Home
last modified time | relevance | path

Searched refs:openOptions (Results 1 - 6 of 6) sorted by relevance

/foundation/communication/netstack/test/fuzztest/websocketinnerapi_fuzzer/
H A Dwebsocket_inner_fuzzer.cpp30 OpenOptions openOptions; member
92 openOptions.headers["Content-Type"] = str; in SetRequestOptionsTest()
93 openOptions.headers["Authorization"] = str; in SetRequestOptionsTest()
96 client->Connect("www.baidu.com", openOptions); in SetRequestOptionsTest()
106 openOptions.headers["Authorization"] = "Bearer your_token_here"; in SetConnectUrlTest()
107 openOptions.headers["Content-Type"] = "application/json"; in SetConnectUrlTest()
110 client->Connect(str, openOptions); in SetConnectUrlTest()
118 openOptions.headers["Authorization"] = "Bearer your_token_here"; in SetSendDataTest()
121 openOptions.headers["Content-Type"] = "application/json"; in SetSendDataTest()
124 client->Connect("www.baidu.com", openOptions); in SetSendDataTest()
[all...]
/foundation/communication/netstack/test/unittest/websocket_inner_unittest/
H A Dwebsocket_inner_unittest.cpp45 OpenOptions openOptions; member
61 openOptions.headers["Content-Type"] = "application/json"; in HWTEST_F()
62 openOptions.headers["Authorization"] = "Bearer your_token_here"; in HWTEST_F()
66 int32_t ret = client->Connect("www.baidu.com", openOptions); in HWTEST_F()
73 openOptions.headers["Content-Type"] = "application/json"; in HWTEST_F()
74 openOptions.headers["Authorization"] = "Bearer your_token_here"; in HWTEST_F()
76 ret = client->Connect("www.baidu.com", openOptions); in HWTEST_F()
85 client->Connect("www.baidu.com", openOptions); in HWTEST_F()
/foundation/communication/netstack/test/unittest/websocket_test/
H A Dwebsocket_inner_unittest.cpp45 OpenOptions openOptions; member
61 openOptions.headers["Content-Type"] = "application/json"; in HWTEST_F()
62 openOptions.headers["Authorization"] = "Bearer your_token_here"; in HWTEST_F()
66 int32_t ret = client->Connect("www.baidu.com", openOptions); in HWTEST_F()
73 openOptions.headers["Content-Type"] = "application/json"; in HWTEST_F()
74 openOptions.headers["Authorization"] = "Bearer your_token_here"; in HWTEST_F()
76 ret = client->Connect("www.baidu.com", openOptions); in HWTEST_F()
85 client->Connect("www.baidu.com", openOptions); in HWTEST_F()
/foundation/communication/netstack/interfaces/kits/c/net_websocket/src/
H A Dnet_websocket_adapter.cpp47 int32_t Conv2RequestOptions(struct OpenOptions *openOptions, in Conv2RequestOptions() argument
50 if (openOptions == nullptr) { in Conv2RequestOptions()
59 openOptions->headers[fieldName] = fieldValue; in Conv2RequestOptions()
H A Dnet_websocket.cpp148 struct OpenOptions openOptions; in OH_WebSocketClient_Connect() local
149 openOptions.headers = {}; in OH_WebSocketClient_Connect()
152 Conv2RequestOptions(&openOptions, options); in OH_WebSocketClient_Connect()
162 ret = websocketClient->Connect(connectUrl, openOptions); in OH_WebSocketClient_Connect()
/foundation/communication/netstack/interfaces/kits/c/net_websocket/include/
H A Dnet_websocket_adapter.h28 int32_t Conv2RequestOptions(struct OpenOptions *openOptions,

Completed in 3 milliseconds