HTTPRequest

public struct HTTPRequest

A structure representing the headers from a HTTP request, without the body of the request.

  • HTTP request method.

    Declaration

    Swift

    public var method: HTTPMethod
  • HTTP request URI, eg. /foo/bar?buz=qux

    Declaration

    Swift

    public var target: String
  • HTTP request version

    Declaration

    Swift

    public var httpVersion: HTTPVersion
  • HTTP request headers

    Declaration

    Swift

    public var headers: HTTPHeaders