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

# HCHttpCallRequestGetRequestBodyReadFunction

> HCHttpCallRequestGetRequestBodyReadFunction

# HCHttpCallRequestGetRequestBodyReadFunction

获取 HTTP 调用用于读取请求正文的函数

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetRequestBodyReadFunction(  
         HCCallHandle call,  
         HCHttpCallRequestBodyReadFunction* readFunction,  
         size_t* bodySize,  
         void** context  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

*readFunction*   \_Out\_\
Type: HCHttpCallRequestBodyReadFunction\*

此 HTTP 调用的读取函数。

*bodySize*   \_Out\_\
Type: size\_t\*

正文的大小。

*context*   \_Out\_\
Type: void\*\*

与该读取函数关联的上下文。

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