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

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


## Related topics

- [HCHttpCallRequestGetHeaderAtIndex](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [XblHttpCallGetNumHeaders](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders.md)
- [HCHttpCallResponseGetNumHeaders](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnumheaders.md)
- [HCHttpCallRequestGetHeader](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader.md)
- [XblHttpCallGetHeaderAtIndex](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
