Compartir a través de


mock

Functions

Function Description
HCMockAddMock Configures libHttpClient to return mock response instead of making a network call when HCHttpCallPerformAsync() is called.
HCMockCallCreate Creates a mock HTTP call handle.
HCMockClearMocks Removes and cleans up all mock calls added by HCMockAddMock.
HCMockRemoveMock Removes and cleans up the mock.
HCMockResponseSetHeader Set a response header to return for the mock.
HCMockResponseSetNetworkErrorCode Set the network error code to return for the mock.
HCMockResponseSetResponseBodyBytes Set the response body string to return for the mock.
HCMockResponseSetStatusCode Set the HTTP status code to return for the mock.
HCMockSetMockMatchedCallback Add an intermediate callback that will be called when the specified mock is matched. This gives the client another opportunity to specify the mock response.