Type Aliases

The following type aliases are available globally.

  • Type to handle network request completion

    Declaration

    Swift

    public typealias RequestCompletionHandler = (Response) -> Void
  • Type to represent request body/url options

    Declaration

    Swift

    public typealias RequestOptions = [String : Any]
  • Type to represent request headers

    Declaration

    Swift

    public typealias RequestHeaders = [HTTPHeader : String]
  • Declaration

    Swift

    public typealias rgbaValue = (r: UInt8, g: UInt8, b: UInt8, a: UInt8)