Request

public struct Request : Message

Undocumented

  • Undocumented

    Declaration

    Swift

    public var method: Method
  • uri

    Undocumented

    Declaration

    Swift

    public var uri: URI
  • Undocumented

    Declaration

    Swift

    public var version: Version
  • Undocumented

    Declaration

    Swift

    public var headers: Headers { get set }
  • Undocumented

    Declaration

    Swift

    public var cookies: Set<Cookie> { get }
  • Undocumented

    Declaration

    Swift

    public var body: Body { get set }
  • Undocumented

    Declaration

    Swift

    public init(
        method: Method = .GET,
        uri: URI = .default,
        version: Version = .init(),
        headers: Headers = .init(),
        body: Body = .init()
    )
  • Undocumented

    Declaration

    Swift

    public var description: String { get }
  • Undocumented

    See more

    Declaration

    Swift

    public enum Method : String, CaseIterable, Encodable
  • Undocumented

    Declaration

    Swift

    public func hasCookie(named name: String) -> Bool
  • Undocumented

    Declaration

    Swift

    public mutating func setCookie(_ cookie: Cookie)
  • Undocumented

    Declaration

    Swift

    public mutating func clearCookie(named name: String)
  • Undocumented

    Declaration

    Swift

    public mutating func clearCookies()