Type Aliases

The following type aliases are available globally.

  • HTTP Request Header

    Declaration

    Swift

    public typealias Header = [String : String]
  • Boolean that represents the success or failure of the ResponseValidationClosure

    Declaration

    Swift

    public typealias ValidResponse = Bool
  • A function that takes the HTTPResonse’s StatusCode in for comparison. Return true if the code is expected or false if the function should throw an error.

    Declaration

    Swift

    public typealias ResponseValidationClosure = (Int) -> ValidResponse