Structures

The following structures are available globally.

  • Encapsulates properties needed to initialize a CircuitBreaker object within the RestRequest initializer. A is the type of the fallback’s parameter. See the CircuitBreaker documentation for a full explanation of these parameters.

    See more

    Declaration

    Swift

    public struct CircuitParameters<A>
  • Represents an error while reading the data for a certificate or private key.

    See more

    Declaration

    Swift

    public struct CertificateError : Error, CustomStringConvertible, Equatable
  • Represents a client certificate that should be provided as part of a RestRequest. The certificate and its corresponding private key will be read from PEM formatted data. If the private key is encrypted with a passphrase, the passphrase should also be supplied.

    See more

    Declaration

    Swift

    public struct ClientCertificate
  • Struct used to specify the type of authentication being used.

    See more

    Declaration

    Swift

    public struct Credentials
  • Object encapsulating a singular part of a multipart form.

    See more

    Declaration

    Swift

    public struct BodyPart
  • Enum describing error types that can occur during a rest request and response.

    See more

    Declaration

    Swift

    public struct RestError : Error
    extension RestError: CustomStringConvertible
    extension RestError: Equatable
  • Contains data associated with a finished network request, with T being the type of response we expect to receive.

    See more

    Declaration

    Swift

    public struct RestResponse<T>