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

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

## 構文

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

### パラメーター

*call*   \_In\_\
型: HCCallHandle

HTTP 呼び出しのハンドル。

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

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

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

ヘッダー名文字列の長さ (バイト単位)。

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

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

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

ヘッダー値文字列の長さ (バイト単位)。

### 戻り値

型: HRESULT

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

## 要件

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

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

## 関連項目

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


## Related topics

- [HCHttpCallResponseSetHeader](/ja-jp/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheader.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)
