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

# HCHttpCallResponseGetResponseBodyWriteFunction

> HCHttpCallResponseGetResponseBodyWriteFunction

# HCHttpCallResponseGetResponseBodyWriteFunction

Get the function used by the HTTP call to write the response body.

## Syntax

```cpp theme={null}
HRESULT HCHttpCallResponseGetResponseBodyWriteFunction(  
         HCCallHandle call,  
         HCHttpCallResponseBodyWriteFunction* writeFunction,  
         void** context  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

*writeFunction*   \_Out\_\
Type: HCHttpCallResponseBodyWriteFunction\*

The write function of this HTTP call.

*context*   \_Out\_\
Type: void\*\*

The context associated with this write function.

### Return value

Type: HRESULT

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

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCHttpCallResponseSetResponseBodyWriteFunction](/reference/live/httpclient/httpclient/functions/hchttpcallresponsesetresponsebodywritefunction.md)
- [HCHttpCallResponseGetResponseBodyBytes](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetresponsebodybytes.md)
- [HCHttpCallResponseGetResponseBodyBytesSize](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetresponsebodybytessize.md)
- [HCHttpCallResponseGetResponseString](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetresponsestring.md)
- [HCHttpCallResponseSetResponseBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes.md)
