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

# XblHttpCallGetResponseBodyBytes

> XblHttpCallGetResponseBodyBytes

# XblHttpCallGetResponseBodyBytes

取得 HTTP 呼叫的回應本文緩衝區。

## 語法

```cpp theme={null}
HRESULT XblHttpCallGetResponseBodyBytes(  
         XblHttpCallHandle call,  
         size_t bufferSize,  
         uint8_t* buffer,  
         size_t* bufferUsed  
)  
```

### 參數

*call*   \_In\_\
類型：[XblHttpCallHandle](/zh-TW/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 呼叫的控制代碼。

*bufferSize*   \_In\_\
類型：size\_t

傳入的回應本文緩衝區大小。

*buffer*   \_Out\_writes\_bytes\_to\_(bufferSize,*bufferUsed)\
類型：uint8\_t*

要寫入的緩衝區。

*bufferUsed*   \_Out\_opt\_\
類型：size\_t\*

實際寫入緩衝區的位元組數目。

### 傳回值

類型：HRESULT

此 API 作業的結果碼。可能的值為 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 備註

只有在呼叫 [XblHttpCallPerformAsync](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) 且 HTTP 工作完成後，才能呼叫此函式。只有在傳遞給 PerformAsync 的 responsetype 為 Vector 時，此值才有效。

## 需求

**標頭：** http\_call\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[http\_call\_c](/zh-TW/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [XblHttpCallGetResponseBodyBytes](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytes.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [XblHttpCallGetResponseBodyBytesSize](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytessize.md)
