Client

public final class Client

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias RequestCompletion<ResponseType> = (HTTPURLResponse?, Result<ResponseType, Error>) -> Void

Properties

Initialisation

  • Initialises a new client instance with a default url session.

    Declaration

    Swift

    public init(
        configuration: Configuration,
        session: URLSession = .init(configuration: .default)
    )

    Parameters

    configuration

    The client configuration.

    session

    The URLSession which is used for executing requests

Methods