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

# HCHttpCallRequestGetRequestBodyBytes

> HCHttpCallRequestGetRequestBodyBytes

# HCHttpCallRequestGetRequestBodyBytes

获取该 HTTP 调用的请求正文字节。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetRequestBodyBytes(  
         HCCallHandle call,  
         _Outptr_result_bytebuffer_maybenull_ *requestBodySize  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

\**requestBodySize*   \
Type: *Outptr\_result\_bytebuffer\_maybenull*

该 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

- [HCHttpCallRequestSetRequestBodyBytes](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodybytes.md)
- [XblHttpCallRequestSetRequestBodyBytes](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [HCHttpCallRequestGetRequestBodyString](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring.md)
- [HCHttpCallRequestGetRequestBodyReadFunction](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction.md)
