Enums

The following enums are available globally.

  • An error that can be thrown while handling JSONP.

    See more

    Declaration

    Swift

    public enum JSONPError: Swift.Error
  • Possible parameters of Link HTTP header.

    See RFC 5988 for more details.

    See more

    Declaration

    Swift

    public enum LinkParameter: String
  • An enum to describe the HTTP method (Get, Post, Put, Delete, etc) of an HTTP request. In general they match the actual HTTP methods by the same name. There are two special ones, used by Router when building up the set of mappings between paths and handlers or middleware. They are:

    See more

    Declaration

    Swift

    public enum RouterMethod: String
  • The result of parsing the body of the request.

    When a body of a request is parsed the results of the parsing are placed in the associated value of the enum case based on Content-Type

    See more

    Declaration

    Swift

    public indirect enum ParsedBody