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

HTTP 呼び出しの応答ヘッダーを設定します。

## 構文

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

### パラメーター

*call*   \_In\_\
型: HCCallHandle

HTTP 呼び出しのハンドル。

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

HTTP 呼び出しの UTF-8 エンコードされた応答ヘッダー名。

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

HTTP 呼び出しの UTF-8 エンコードされた応答ヘッダー値。

### 戻り値

型: HRESULT

この API 操作の結果コード。取り得る値は S\_OK、E\_INVALIDARG、E\_OUTOFMEMORY、または E\_FAIL です。

## 要件

**ヘッダー:** httpProvider.h

**ライブラリ:** libHttpClient.GDK.lib

## 関連項目

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


## Related topics

- [HCHttpCallResponseSetHeaderWithLength](/ja-jp/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength.md)
- [HCHttpCallResponseGetHeader](/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheader.md)
- [HCHttpCallResponseGetHeaderAtIndex](/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallResponseGetNumHeaders](/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnumheaders.md)
- [HCHttpCallResponseSetResponseBodyBytes](/ja-jp/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes.md)
