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

# PFSetHttpSettings

> 设置 SDK 的全局通用 HTTP 设置。

设置 SDK 的全局通用 HTTP 设置。

## 语法

```cpp theme={null}
HRESULT PFSetHttpSettings(  
    const PFHttpSettings* settings  
)  
```

### 参数

**`settings`**   [PFHttpSettings\*](/zh-CN/services/playfab/api-references/c/pfhttpconfig/structs/pfhttpsettings)

指向通用设置的指针。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFHttpConfig.h

## 另请参阅

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


## Related topics

- [服务 C API 概览 - PFHttpConfig.h](/zh-CN/services/playfab/api-references/c/pfhttpconfig/pfhttpconfig_members.md)
- [HTTP 配置](/zh-CN/services/playfab/sdks/c/http-config.md)
- [PFSetHttpRetrySettings](/zh-CN/services/playfab/api-references/c/pfhttpconfig/functions/pfsethttpretrysettings.md)
- [XblContextSettingsSetHttpRetryDelay](/zh-CN/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
- [XblContextSettingsSetHttpTimeoutWindow](/zh-CN/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
