Searched refs:openOptions (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/communication/netstack/test/fuzztest/websocketinnerapi_fuzzer/ |
H A D | websocket_inner_fuzzer.cpp | 30 OpenOptions openOptions; variable 92 openOptions.headers["Content-Type"] = str; in SetRequestOptionsTest() 93 openOptions.headers["Authorization"] = str; in SetRequestOptionsTest() 96 client->Connect("www.baidu.com", openOptions); in SetRequestOptionsTest() 107 openOptions.headers["Content-Type"] = "application/json"; in SetConnectUrlTest() 110 client->Connect(str, openOptions); in SetConnectUrlTest() 121 openOptions.headers["Content-Type"] = "application/json"; in SetSendDataTest() 124 client->Connect("www.baidu.com", openOptions); in SetSendDataTest() 136 openOptions.headers["Content-Type"] = "application/json"; in SetSendDataLengthTest() 140 client->Connect("www.baidu.com", openOptions); in SetSendDataLengthTest() [all …]
|
/ohos5.0/foundation/communication/netstack/test/unittest/websocket_inner_unittest/ |
H A D | websocket_inner_unittest.cpp | 45 OpenOptions openOptions; variable 61 openOptions.headers["Content-Type"] = "application/json"; 62 openOptions.headers["Authorization"] = "Bearer your_token_here"; 66 int32_t ret = client->Connect("www.baidu.com", openOptions); 73 openOptions.headers["Content-Type"] = "application/json"; 74 openOptions.headers["Authorization"] = "Bearer your_token_here"; 76 ret = client->Connect("www.baidu.com", openOptions); 85 client->Connect("www.baidu.com", openOptions);
|
/ohos5.0/foundation/communication/netstack/interfaces/kits/c/net_websocket/src/ |
H A D | net_websocket_adapter.cpp | 47 int32_t Conv2RequestOptions(struct OpenOptions *openOptions, in Conv2RequestOptions() argument 50 if (openOptions == nullptr) { in Conv2RequestOptions() 59 openOptions->headers[fieldName] = fieldValue; in Conv2RequestOptions()
|
H A D | net_websocket.cpp | 148 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()
|
/ohos5.0/foundation/communication/netstack/interfaces/kits/c/net_websocket/include/ |
H A D | net_websocket_adapter.h | 28 int32_t Conv2RequestOptions(struct OpenOptions *openOptions,
|