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

# HCGetHttpCallPerformFunction

> HCGetHttpCallPerformFunction

Returns the current HCCallPerformFunction callback which implements the HTTP perform function on the current platform.

## Syntax

```cpp theme={null}
HRESULT HCGetHttpCallPerformFunction(  
         HCCallPerformFunction* performFunc,  
         void** performContext  
)  
```

### Parameters

*performFunc*   \_Out\_\
Type: [HCCallPerformFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hccallperformfunction.md)\*

Set to the current HTTP perform function. Returns the default routine if not previously set.

*performContext*   \_Out\_\
Type: void\*\*

The context for the callback.

### Return value

Type: HRESULT

Returns `S_OK` on success, or `E_INVALIDARG` if either parameter is `nullptr`.

## Remarks

This function returns the callback that's currently registered with [HCSetHttpCallPerformFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md). If no custom callback is registered, it returns the built-in perform function, which a custom callback can forward calls to. Use it along with HCSetHttpCallPerformFunction to build a filter that monitors and modifies all HTTP calls while still using the built-in HTTP implementation. If a custom callback is already registered, the returned function is that custom callback, not the built-in implementation.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[httpProvider](https://docs.xbox.com/reference/live/httpclient/httpprovider/httpprovider_members.md)


## Related topics

- [HCCallPerformFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hccallperformfunction.md)
- [httpProvider (contents)](https://docs.xbox.com/reference/live/httpclient/httpprovider/httpprovider_members.md)
- [HCSetHttpCallPerformFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md)
- [HCHttpCallGetPerformCount](https://docs.xbox.com/reference/live/httpclient/httpclient/functions/hchttpcallgetperformcount.md)
- [HCHttpCallRequestGetProgressReportFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetprogressreportfunction.md)
