Type Aliases

The following type aliases are available globally.

  • Raw

    The type to be used when no custom Decodable result is required. Useful for when you don’t know, or care, what the response is (or if one is even provided), such as a Deletable with no response body, or a Gettable which returns HTML.

    Declaration

    Swift

    public typealias Raw = Data
  • The function used as a completion handler in all Restables.

    Declaration

    Swift

    public typealias RestableCompletionHandler<ResponseType> = (Result<ResponseType>) -> ()