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

# HCHttpCallResponseSetHeaderWithLength

> HCHttpCallResponseSetHeaderWithLength

# HCHttpCallResponseSetHeaderWithLength

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

## Syntaxe

```cpp theme={null}
HRESULT HCHttpCallResponseSetHeaderWithLength(  
         HCCallHandle call,  
         const char* headerName,  
         size_t nameSize,  
         const char* headerValue,  
         size_t valueSize  
)  
```

### Paramètres

*call*   \_In\_\
Type : HCCallHandle

Handle de l'appel HTTP.

*headerName*   \_In\_reads\_(nameSize)\
Type : char\*

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

*nameSize*   \_In\_\
Type : size\_t

Longueur en octets de la chaîne du nom de l'en-tête.

*headerValue*   \_In\_reads\_(valueSize)\
Type : char\*

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

*valueSize*   \_In\_\
Type : size\_t

Longueur en octets de la chaîne de la valeur de l'en-tête.

### 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/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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