Enumerations
The following enumerations are available globally.
-
Factory helper for creating HTTP client instances.
This enum provides a convenient factory method for creating HTTP clients without needing to reference the concrete implementation type directly.
Example:
See morelet client = HttpClient.createClient { config in config.timeout = 30.0 config.onRequest { req in req.setHeader(name: "User-Agent", value: "MyApp/1.0") } }Declaration
Swift
public enum HttpClient -
HTTP methods supported by the network module.
See moreDeclaration
Swift
public enum HttpMethod : String, Sendable -
Shared network string constants used across the module.
These constants provide standardized header names, content types, and common parameter keys used throughout the Ping SDK network layer.
See moreDeclaration
Swift
public enum NetworkConstants -
Common network error cases surfaced by PingNetwork operations.
See moreDeclaration
Swift
public enum NetworkError : LocalizedError, Sendable
View on GitHub
Enumerations Reference