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

# HCHttpCallResponseSetHeader

> HCHttpCallResponseSetHeader

Set a response header for the HTTP call.

## Syntax

```cpp theme={null}
HRESULT HCHttpCallResponseSetHeader(  
         HCCallHandle call,  
         const char* headerName,  
         const char* headerValue  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

*headerName*   \_In\_z\_\
Type: char\*

UTF-8 encoded response header name for the HTTP call.

*headerValue*   \_In\_z\_\
Type: char\*

UTF-8 encoded response header value for the HTTP call.

### Return value

Type: HRESULT

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

## 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)
- [HCHttpCallResponseSetHeaderWithLength](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength.md)
- [HCHttpCallResponseSetResponseBodyBytes](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes.md)
- [HCHttpCallResponseSetResponseBodyWriteFunction](https://docs.xbox.com/reference/live/httpclient/httpclient/functions/hchttpcallresponsesetresponsebodywritefunction.md)
