HCMockResponseSetResponseBodyBytes

Set the response body string to return for the mock.

Syntax

HRESULT HCMockResponseSetResponseBodyBytes(  
         HCMockCallHandle call,  
         const uint8_t* bodyBytes,  
         uint32_t bodySize  
)  

Parameters

call   _In_
Type: HCMockCallHandle

The handle of the HTTP call.

bodyBytes   _In_reads_bytes_(bodySize)
Type: uint8_t*

The response body bytes of the HTTP call.

bodySize   _In_
Type: uint32_t

The length in bytes of the body being set.

Return value

Type: HRESULT

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

Requirements

Header: mock.h

Library: libHttpClient.141.GSDK.C.lib

See also

mock