> ## 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.

# HCGetHttpCallPerformFunction

> 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\*

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

Result code for this API operation. Possible values are S\_OK, E\_HC\_ALREADY\_INITIALISED, or E\_INVALIDARG.

## Remarks

This can be used along with HCSetHttpCallPerformFunction() to build a filter that monitors and modifies all HTTP calls, while still using the default HTTP implementation.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCSetHttpCallPerformFunction](/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md)
- [HCHttpCallPerformAsync](/reference/live/httpclient/httpclient/functions/hchttpcallperformasync.md)
- [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md)
- [HCHttpCallCreate](/reference/live/httpclient/httpclient/functions/hchttpcallcreate.md)
- [XblHttpCallCreate](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallcreate.md)
