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:

    let client = HttpClient.createClient { config in
        config.timeout = 30.0
        config.onRequest { req in
            req.setHeader(name: "User-Agent", value: "MyApp/1.0")
        }
    }
    
    See more

    Declaration

    Swift

    public enum HttpClient
  • HTTP methods supported by the network module.

    See more

    Declaration

    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 more

    Declaration

    Swift

    public enum NetworkConstants
  • Common network error cases surfaced by PingNetwork operations.

    See more

    Declaration

    Swift

    public enum NetworkError : LocalizedError, Sendable