Type Aliases

The following type aliases are available globally.

  • An HTTPBody is the data transmitted in an HTTP message immediately following the headers. Most HTTP requests with bodies use the POST or PUT HTTPMethod.

    Declaration

    Swift

    public typealias HTTPBody = [String : Any]
  • HTTPcookies are small pieces of data that a server sends to the client to store, to provide with future requests.

    Declaration

    Swift

    public typealias HTTPCookies = [AnyHashable : Any]
  • HTTPHeaders are components of the header section of request and response messages. They define the operating parameters of an APIRequest.

    Declaration

    Swift

    public typealias HTTPHeaders = [String : String]
  • HTTPParameters are set of querys used to access specific data via an APIRequest. These parameters will be postpended to a url in the form ?key1=value1&key2=value... etc.

    Declaration

    Swift

    public typealias HTTPParameters = [String : String]