> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# mock

> mock

# mock

## Functions

| Function                                                                                                           | Description                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [HCMockAddMock](/reference/live/httpclient/mock/functions/hcmockaddmock)                                           | Configures libHttpClient to return mock response instead of making a network call when HCHttpCallPerformAsync() is called.                                   |
| [HCMockCallCloseHandle](/reference/live/httpclient/mock/functions/hcmockcallclosehandle)                           | Closes a mock HTTP call handle.                                                                                                                              |
| [HCMockCallCreate](/reference/live/httpclient/mock/functions/hcmockcallcreate)                                     | Creates a mock HTTP call handle.                                                                                                                             |
| [HCMockCallDuplicateHandle](/reference/live/httpclient/mock/functions/hcmockcallduplicatehandle)                   | Duplicates a mock HTTP call handle.                                                                                                                          |
| [HCMockClearMocks](/reference/live/httpclient/mock/functions/hcmockclearmocks)                                     | Removes all mock calls added by HCMockAddMock.                                                                                                               |
| [HCMockRemoveMock](/reference/live/httpclient/mock/functions/hcmockremovemock)                                     | Removes the mock.                                                                                                                                            |
| [HCMockResponseSetHeader](/reference/live/httpclient/mock/functions/hcmockresponsesetheader)                       | Set a response header to return for the mock.                                                                                                                |
| [HCMockResponseSetNetworkErrorCode](/reference/live/httpclient/mock/functions/hcmockresponsesetnetworkerrorcode)   | Set the network error code to return for the mock.                                                                                                           |
| [HCMockResponseSetResponseBodyBytes](/reference/live/httpclient/mock/functions/hcmockresponsesetresponsebodybytes) | Set the response body string to return for the mock.                                                                                                         |
| [HCMockResponseSetStatusCode](/reference/live/httpclient/mock/functions/hcmockresponsesetstatuscode)               | Set the HTTP status code to return for the mock.                                                                                                             |
| [HCMockSetMockMatchedCallback](/reference/live/httpclient/mock/functions/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. |


## Related topics

- [HCMockAddMock](/reference/live/httpclient/mock/functions/hcmockaddmock.md)
- [HCMockClearMocks](/ko/reference/live/httpclient/mock/functions/hcmockclearmocks.md)
- [HCMockRemoveMock](/ko/reference/live/httpclient/mock/functions/hcmockremovemock.md)
- [HCMockSetMockMatchedCallback](/ko/reference/live/httpclient/mock/functions/hcmocksetmockmatchedcallback.md)
