HCHttpCallResponseGetResponseBodyBytesSize

Get the response body buffer size of the HTTP call. This API operation will fail if a custom write callback was set on this call handle using HCHttpCallResponseSetResponseBodyWriteFunction.

Syntax

HRESULT HCHttpCallResponseGetResponseBodyBytesSize(  
         HCCallHandle call,  
         size_t* bufferSize  
)  

Parameters

call   _In_
Type: HCCallHandle

The handle of the HTTP call.

bufferSize   _Out_
Type: size_t*

The response body buffer size of the HTTP call.

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.

Remarks

This can only be called after calling HCHttpCallPerformAsync when the HTTP task is completed.

Requirements

Header: httpClient.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpClient