HCSetHttpCallPerformFunction
Optionally allows the caller to implement the HTTP perform function.
Syntax
HRESULT HCSetHttpCallPerformFunction(
HCCallPerformFunction performFunc,
void* performContext
)
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
Result code for this API operation. Possible values are S_OK, or E_HC_ALREADY_INITIALISED.
Remarks
Must be called before HCInit. In the HCCallPerformFunction callback, use HCHttpCallRequestGet*() and HCSettingsGet*() to get information about the HTTP call and perform the call as desired and set the response with HCHttpCallResponseSet*().
Requirements
Header: httpProvider.h
Library: libHttpClient.GDK.lib