Skip to main content
The PlayFab Services SDK provides functions to configure how HTTP requests are made, including automatic retry behavior and response compression. These settings are global and apply to all PlayFab API calls made by the SDK. Configure HTTP settings after calling PFInitialize and PFServicesInitialize, but before making any API calls.

Retry settings

The PFHttpRetrySettings struct controls how the SDK handles transient HTTP failures, such as throttling errors (HTTP 429). By default, the SDK automatically retries these failures with backoff. For more information on which errors the SDK retries automatically, see Handling PlayFab Errors.

Set retry settings

Call PFSetHttpRetrySettings to customize the retry behavior. For example, to increase the retry window for calls that can tolerate longer waits:

Get retry settings

Call PFGetHttpRetrySettings to retrieve the current retry configuration:

Disable automatic retries

If you want to handle all retry logic yourself, disable automatic retries:

HTTP settings

The PFHttpSettings struct controls general HTTP behavior for all SDK requests.

Enable response compression

Enabling response compression can reduce bandwidth usage, which is useful for calls that return large payloads. Call PFSetHttpSettings to enable it:
To decompress a compressed response, HCHttpCallResponseSetGzipCompressed must be called before calling HCHttpCallPerformAsync.

Get HTTP settings

Call PFGetHttpSettings to retrieve the current HTTP configuration:

Typical initialization pattern

The following example shows where HTTP configuration fits into the overall SDK initialization flow:
Last modified on August 10, 2026