HCMockAddMock
Configures libHttpClient to return mock response instead of making a network call when HCHttpCallPerformAsync() is called.Syntax
Parameters
call _In_Type: HCMockCallHandle This HC_MOCK_CALL_HANDLE that represents the mock that has been configured accordingly using HCMockResponseSet*() method _In_opt_z_
Type: char* If you want the mock to only apply to a specific URL, pass in a UTF-8 encoded method and URL. url _In_opt_z_
Type: char* If you want the mock to only apply to a specific URL, pass in a UTF-8 encoded method and URL. requestBodyBytes _In_reads_bytes_opt_(requestBodySize)
Type: uint8_t* If you want the mock to only apply to a specific URL & request string, pass in a method, URL and a string body. requestBodySize _In_
Type: uint32_t The size of requestBodyBytes in bytes.
