20
20
/// </remarks>
21
21
typedef void
22
22
(CALLBACK * HCCallPerformFunction )(
23
- _In_ hc_call_handle_t call ,
23
+ _In_ HCCallHandle call ,
24
24
_Inout_ XAsyncBlock * asyncBlock ,
25
25
_In_opt_ void * context ,
26
- _In_ hc_perform_env env
26
+ _In_ HCPerformEnv env
27
27
);
28
28
29
29
/// <summary>
@@ -70,7 +70,7 @@ STDAPI HCGetHttpCallPerformFunction(
70
70
/// <param name="context">the context pointer attached to this call object</param>
71
71
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
72
72
STDAPI HCHttpCallGetContext (
73
- _In_ hc_call_handle_t call ,
73
+ _In_ HCCallHandle call ,
74
74
_In_ void * * context
75
75
) HC_NOEXCEPT ;
76
76
@@ -81,7 +81,7 @@ STDAPI HCHttpCallGetContext(
81
81
/// <param name="context">the context pointer attached to this call object</param>
82
82
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
83
83
STDAPI HCHttpCallSetContext (
84
- _In_ hc_call_handle_t call ,
84
+ _In_ HCCallHandle call ,
85
85
_In_ void * context
86
86
) HC_NOEXCEPT ;
87
87
@@ -98,7 +98,7 @@ STDAPI HCHttpCallSetContext(
98
98
/// <param name="url">UTF-8 encoded URL for the HTTP call</param>
99
99
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
100
100
STDAPI HCHttpCallRequestGetUrl (
101
- _In_ hc_call_handle_t call ,
101
+ _In_ HCCallHandle call ,
102
102
_Outptr_ const char * * method ,
103
103
_Outptr_ const char * * url
104
104
) HC_NOEXCEPT ;
@@ -111,7 +111,7 @@ STDAPI HCHttpCallRequestGetUrl(
111
111
/// <param name="requestBodySize">The request body bytes size in bytes of the HTTP call</param>
112
112
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
113
113
STDAPI HCHttpCallRequestGetRequestBodyBytes (
114
- _In_ hc_call_handle_t call ,
114
+ _In_ HCCallHandle call ,
115
115
_Outptr_result_bytebuffer_maybenull_ (* requestBodySize ) const uint8_t * * requestBodyBytes ,
116
116
_Out_ uint32_t * requestBodySize
117
117
) HC_NOEXCEPT ;
@@ -123,7 +123,7 @@ STDAPI HCHttpCallRequestGetRequestBodyBytes(
123
123
/// <param name="requestBody">The UTF-8 encoded request body of the HTTP call</param>
124
124
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
125
125
STDAPI HCHttpCallRequestGetRequestBodyString (
126
- _In_ hc_call_handle_t call ,
126
+ _In_ HCCallHandle call ,
127
127
_Outptr_ const char * * requestBody
128
128
) HC_NOEXCEPT ;
129
129
@@ -135,7 +135,7 @@ STDAPI HCHttpCallRequestGetRequestBodyString(
135
135
/// <param name="headerValue">UTF-8 encoded request header value for the HTTP call</param>
136
136
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
137
137
STDAPI HCHttpCallRequestGetHeader (
138
- _In_ hc_call_handle_t call ,
138
+ _In_ HCCallHandle call ,
139
139
_In_z_ const char * headerName ,
140
140
_Out_ const char * * headerValue
141
141
) HC_NOEXCEPT ;
@@ -147,7 +147,7 @@ STDAPI HCHttpCallRequestGetHeader(
147
147
/// <param name="numHeaders">the number of request headers in the HTTP call</param>
148
148
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
149
149
STDAPI HCHttpCallRequestGetNumHeaders (
150
- _In_ hc_call_handle_t call ,
150
+ _In_ HCCallHandle call ,
151
151
_Out_ uint32_t * numHeaders
152
152
) HC_NOEXCEPT ;
153
153
@@ -161,7 +161,7 @@ STDAPI HCHttpCallRequestGetNumHeaders(
161
161
/// <param name="headerValue">UTF-8 encoded request header value for the HTTP call</param>
162
162
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
163
163
STDAPI HCHttpCallRequestGetHeaderAtIndex (
164
- _In_ hc_call_handle_t call ,
164
+ _In_ HCCallHandle call ,
165
165
_In_ uint32_t headerIndex ,
166
166
_Out_ const char * * headerName ,
167
167
_Out_ const char * * headerValue
@@ -175,7 +175,7 @@ STDAPI HCHttpCallRequestGetHeaderAtIndex(
175
175
/// <param name="retryAllowed">If retry is allowed for this HTTP call</param>
176
176
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
177
177
STDAPI HCHttpCallRequestGetRetryAllowed (
178
- _In_opt_ hc_call_handle_t call ,
178
+ _In_opt_ HCCallHandle call ,
179
179
_Out_ bool * retryAllowed
180
180
) HC_NOEXCEPT ;
181
181
@@ -187,7 +187,7 @@ STDAPI HCHttpCallRequestGetRetryAllowed(
187
187
/// <param name="retryAfterCacheId">ID number of this REST endpoint used to cache the Retry-After header for fast fail. 1-1000 are reserved for XSAPI</param>
188
188
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
189
189
STDAPI HCHttpCallRequestGetRetryCacheId (
190
- _In_ hc_call_handle_t call ,
190
+ _In_ HCCallHandle call ,
191
191
_Out_ uint32_t * retryAfterCacheId
192
192
) HC_NOEXCEPT ;
193
193
@@ -199,7 +199,7 @@ STDAPI HCHttpCallRequestGetRetryCacheId(
199
199
/// <param name="timeoutInSeconds">the timeout for this HTTP call.</param>
200
200
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
201
201
STDAPI HCHttpCallRequestGetTimeout (
202
- _In_opt_ hc_call_handle_t call ,
202
+ _In_opt_ HCCallHandle call ,
203
203
_Out_ uint32_t * timeoutInSeconds
204
204
) HC_NOEXCEPT ;
205
205
@@ -229,7 +229,7 @@ STDAPI HCHttpCallRequestGetTimeout(
229
229
/// <param name="retryDelayInSeconds">The retry delay in seconds</param>
230
230
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
231
231
STDAPI HCHttpCallRequestGetRetryDelay (
232
- _In_opt_ hc_call_handle_t call ,
232
+ _In_opt_ HCCallHandle call ,
233
233
_In_ uint32_t * retryDelayInSeconds
234
234
) HC_NOEXCEPT ;
235
235
@@ -252,7 +252,7 @@ STDAPI HCHttpCallRequestGetRetryDelay(
252
252
/// <param name="timeoutWindowInSeconds">The timeout window in seconds</param>
253
253
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
254
254
STDAPI HCHttpCallRequestGetTimeoutWindow (
255
- _In_opt_ hc_call_handle_t call ,
255
+ _In_opt_ HCCallHandle call ,
256
256
_Out_ uint32_t * timeoutWindowInSeconds
257
257
) HC_NOEXCEPT ;
258
258
@@ -270,7 +270,7 @@ STDAPI HCHttpCallRequestGetTimeoutWindow(
270
270
/// <param name="enableAssertsForThrottling">True if assert are enabled if throttled</param>
271
271
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
272
272
STDAPI HCHttpCallRequestGetAssertsForThrottling (
273
- _In_opt_ hc_call_handle_t call ,
273
+ _In_opt_ HCCallHandle call ,
274
274
_Out_ bool * enableAssertsForThrottling
275
275
) HC_NOEXCEPT ;
276
276
@@ -287,7 +287,7 @@ STDAPI HCHttpCallRequestGetAssertsForThrottling(
287
287
/// <param name="bodySize">The length in bytes of the body being set.</param>
288
288
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, E_OUTOFMEMORY, or E_FAIL.</returns>
289
289
STDAPI HCHttpCallResponseSetResponseBodyBytes (
290
- _In_ hc_call_handle_t call ,
290
+ _In_ HCCallHandle call ,
291
291
_In_reads_bytes_ (bodySize ) const uint8_t * bodyBytes ,
292
292
_In_ size_t bodySize
293
293
) HC_NOEXCEPT ;
@@ -299,7 +299,7 @@ STDAPI HCHttpCallResponseSetResponseBodyBytes(
299
299
/// <param name="statusCode">the HTTP status code of the HTTP call response</param>
300
300
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
301
301
STDAPI HCHttpCallResponseSetStatusCode (
302
- _In_ hc_call_handle_t call ,
302
+ _In_ HCCallHandle call ,
303
303
_In_ uint32_t statusCode
304
304
) HC_NOEXCEPT ;
305
305
@@ -311,7 +311,7 @@ STDAPI HCHttpCallResponseSetStatusCode(
311
311
/// <param name="platformNetworkErrorCode">The platform specific network error code of the HTTP call to be used for logging / debugging</param>
312
312
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
313
313
STDAPI HCHttpCallResponseSetNetworkErrorCode (
314
- _In_ hc_call_handle_t call ,
314
+ _In_ HCCallHandle call ,
315
315
_In_ HRESULT networkErrorCode ,
316
316
_In_ uint32_t platformNetworkErrorCode
317
317
) HC_NOEXCEPT ;
@@ -324,7 +324,7 @@ STDAPI HCHttpCallResponseSetNetworkErrorCode(
324
324
/// <param name="headerValue">UTF-8 encoded response header value for the HTTP call</param>
325
325
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, E_OUTOFMEMORY, or E_FAIL.</returns>
326
326
STDAPI HCHttpCallResponseSetHeader (
327
- _In_ hc_call_handle_t call ,
327
+ _In_ HCCallHandle call ,
328
328
_In_z_ const char * headerName ,
329
329
_In_z_ const char * headerValue
330
330
) HC_NOEXCEPT ;
@@ -349,7 +349,7 @@ typedef HRESULT
349
349
(CALLBACK * HCWebSocketConnectFunction )(
350
350
_In_z_ const char * uri ,
351
351
_In_z_ const char * subProtocol ,
352
- _In_ hc_websocket_handle_t websocket ,
352
+ _In_ HCWebsocketHandle websocket ,
353
353
_Inout_ XAsyncBlock * asyncBlock
354
354
);
355
355
@@ -362,7 +362,7 @@ typedef HRESULT
362
362
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
363
363
typedef HRESULT
364
364
(CALLBACK * HCWebSocketSendMessageFunction )(
365
- _In_ hc_websocket_handle_t websocket ,
365
+ _In_ HCWebsocketHandle websocket ,
366
366
_In_z_ const char * message ,
367
367
_Inout_ XAsyncBlock * asyncBlock
368
368
);
@@ -375,7 +375,7 @@ typedef HRESULT
375
375
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
376
376
typedef HRESULT
377
377
(CALLBACK * HCWebSocketDisconnectFunction )(
378
- _In_ hc_websocket_handle_t websocket ,
378
+ _In_ HCWebsocketHandle websocket ,
379
379
_In_ HCWebSocketCloseStatus closeStatus
380
380
);
381
381
@@ -421,7 +421,7 @@ HCGetWebSocketFunctions(
421
421
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, E_OUTOFMEMORY, or E_FAIL.</returns>
422
422
STDAPI
423
423
HCWebSocketGetProxyUri (
424
- _In_ hc_websocket_handle_t websocket ,
424
+ _In_ HCWebsocketHandle websocket ,
425
425
_Out_ const char * * proxyUri
426
426
) HC_NOEXCEPT ;
427
427
@@ -434,7 +434,7 @@ HCWebSocketGetProxyUri(
434
434
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, E_OUTOFMEMORY, or E_FAIL.</returns>
435
435
STDAPI
436
436
HCWebSocketGetHeader (
437
- _In_ hc_websocket_handle_t websocket ,
437
+ _In_ HCWebsocketHandle websocket ,
438
438
_In_z_ const char * headerName ,
439
439
_Out_ const char * * headerValue
440
440
) HC_NOEXCEPT ;
@@ -447,7 +447,7 @@ HCWebSocketGetHeader(
447
447
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
448
448
STDAPI
449
449
HCWebSocketGetNumHeaders (
450
- _In_ hc_websocket_handle_t websocket ,
450
+ _In_ HCWebsocketHandle websocket ,
451
451
_Out_ uint32_t * numHeaders
452
452
) HC_NOEXCEPT ;
453
453
@@ -462,7 +462,7 @@ HCWebSocketGetNumHeaders(
462
462
/// <returns>Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.</returns>
463
463
STDAPI
464
464
HCWebSocketGetHeaderAtIndex (
465
- _In_ hc_websocket_handle_t websocket ,
465
+ _In_ HCWebsocketHandle websocket ,
466
466
_In_ uint32_t headerIndex ,
467
467
_Out_ const char * * headerName ,
468
468
_Out_ const char * * headerValue
0 commit comments