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

# HCHttpCallResponseSetHeader

> HCHttpCallResponseSetHeader

# HCHttpCallResponseSetHeader

Définit un en-tête de réponse pour l'appel HTTP.

## Syntaxe

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

### Paramètres

*call*   \_In\_\
Type : HCCallHandle

Handle de l'appel HTTP.

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

Nom de l'en-tête de réponse encodé en UTF-8 pour l'appel HTTP.

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

Valeur de l'en-tête de réponse encodée en UTF-8 pour l'appel HTTP.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API. Les valeurs possibles sont S\_OK, E\_INVALIDARG, E\_OUTOFMEMORY ou E\_FAIL.

## Configuration requise

**En-tête :** httpProvider.h

**Bibliothèque :** libHttpClient.GDK.lib

## Voir aussi

[httpProvider](/fr-CA/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallResponseSetHeaderWithLength](/fr-CA/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength.md)
- [HCHttpCallResponseGetHeader](/fr-CA/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheader.md)
- [HCHttpCallResponseGetNumHeaders](/fr-CA/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnumheaders.md)
- [HCHttpCallResponseGetHeaderAtIndex](/fr-CA/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallRequestSetHeader](/fr-CA/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetheader.md)
