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

# HCHttpCallRequestGetNumHeaders

> HCHttpCallRequestGetNumHeaders

# HCHttpCallRequestGetNumHeaders

获取该 HTTP 调用中请求标头的数量。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetNumHeaders(  
         HCCallHandle call,  
         uint32_t* numHeaders  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

*numHeaders*   \_Out\_\
Type: uint32\_t\*

该 HTTP 调用中请求标头的数量。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](https://docs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/httpprovider_members.md)


## Related topics

- [HCHttpCallRequestGetHeaderAtIndex](https://docs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [httpProvider（内容）](https://docs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/httpprovider_members.md)
- [XblHttpCallGetNumHeaders](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders.md)
- [HCHttpCallResponseGetNumHeaders](https://docs.xbox.com/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnumheaders.md)
- [XblHttpCallGetHeaderAtIndex](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
