Type Aliases

The following type aliases are available globally.

  • JSON parameters for Task

    Declaration

    Swift

    public typealias Parameters = [String: Any]
  • Headers for Task

    Declaration

    Swift

    public typealias Headers = [String: String]
  • Describes a Plain result response.

    Declaration

    Swift

    public typealias PlainResponse = (Result<String>)
  • Describes a JSON result response.

    Declaration

    Swift

    public typealias JSONResponse = (Result<JSON>)
  • Describes a Data result response.

    Declaration

    Swift

    public typealias DataResponse = (Result<Data?>)
  • Describes a Response result response.

    Declaration

    Swift

    public typealias ResponseHandler = (Result<Response>)
  • Describes a common JSON response.

    Declaration

    Swift

    public typealias JSON = [String: Any]