Syntax
Parameters
call   _In_Type: HCMockCallHandle The matched mock. callback   _In_
Type: HCMockMatchedCallback Callback to be invoked when the mock is matched. context   _In_opt_
Type: void* Client context.
Return value
Type: HRESULT Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.Remarks
libHttpClient invokes the callback when a request attempt matches the mock, before it copies the mock response to the attempt. The callback runs on a thread that dispatches the work port of the task queue for the call. For details, see HCMockMatchedCallback.Requirements
Header: mock.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
mockHCMockMatchedCallback
HCMockAddMock
