Skip to main content
Optionally allows the caller to implement the HTTP perform function.

Syntax

Parameters

performFunc   _In_
Type: HCCallPerformFunction
A callback that implements HTTP perform function as desired. performContext   _In_opt_
Type: void*
The context for the callback.

Return value

Type: HRESULT Returns S_OK on success, E_INVALIDARG if performFunc is nullptr, or E_HC_ALREADY_INITIALISED if libHttpClient is already initialized.

Remarks

Call this function before HCInitialize. In the HCCallPerformFunction callback, use the HCHttpCallRequestGet*() functions to get information about the HTTP call, perform the call as desired, and set the response with HCHttpCallResponseSet*().

Requirements

Header: httpProvider.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

httpProvider
Last modified on October 30, 2026