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
trueif the code is expected orfalseif the function should throw an error.Declaration
Swift
public typealias ResponseValidationClosure = (Int) -> ValidResponse
Type Aliases Reference