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

# PFHttpSettings

> 定义 PlayFab HTTP 请求通用 HTTP 设置的结构。当前包含用于对所有 SDK 响应启用 gzip 压缩的设置。

定义 PlayFab HTTP 请求通用 HTTP 设置的结构。当前包含用于对所有 SDK 响应启用 gzip 压缩的设置。

## 语法

```cpp theme={null}
struct PFHttpSettings {  
    bool requestResponseCompression;  
}  
```

### 成员

**`requestResponseCompression`**   bool

控制 SDK 当前是否请求压缩传入的响应。通过将 Accept-Encoding 标头指定为 "application/gzip" 来启用响应压缩。若要解压缩 API 终结点提供的压缩响应，必须在调用 HCHttpCallPerformAsync 之前调用 HCHttpCallResponseSetGzipCompressed。

## 要求

**头文件：** PFHttpConfig.h

## 另请参阅

[PFHttpConfig 成员](/zh-CN/services/playfab/api-references/c/pfhttpconfig/pfhttpconfig_members)


## Related topics

- [PFSetHttpSettings](/zh-CN/services/playfab/api-references/c/pfhttpconfig/functions/pfsethttpsettings.md)
- [PFGetHttpSettings](/zh-CN/services/playfab/api-references/c/pfhttpconfig/functions/pfgethttpsettings.md)
- [HTTP 配置](/zh-CN/services/playfab/sdks/c/http-config.md)
- [服务 C API 概览 - PFHttpConfig.h](/zh-CN/services/playfab/api-references/c/pfhttpconfig/pfhttpconfig_members.md)
- [Economy V2 TurboLoading](/zh-CN/services/playfab/economy-monetization/economy-v2/inventory/turboloading.md)
