Skip to main content
Set a response header to return for the mock.

Syntax

Parameters

call   _In_
Type: HCMockCallHandle
The handle of the HTTP call. headerName   _In_z_
Type: char*
UTF-8 encoded response header name for the HTTP call. headerValue   _In_z_
Type: char*
UTF-8 encoded response header value for the HTTP call.

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.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

mock
Last modified on October 30, 2026