HCHttpCallResponseAppendResponseBodyBytes

Appends to the response body byte buffer of the HTTP call. If a custom write callback was previously set on this call handle using HCHttpCallResponseSetResponseBodyWriteFunction, this operation will fail as these are mutually exclusive.

Syntax

HRESULT HCHttpCallResponseAppendResponseBodyBytes(  
         HCCallHandle call,  
         const uint8_t* bodyBytes,  
         size_t bodySize  
)  

Parameters

call   _In_
Type: HCCallHandle

The handle of the HTTP call.

bodyBytes   _In_reads_bytes_(bodySize)
Type: uint8_t*

The data to append.

bodySize   _In_
Type: size_t

The length in bytes of the data.

Return value

Type: HRESULT

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

Requirements

Header: httpProvider.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpProvider