RequestMethod

public enum RequestMethod : String, Equatable, Hashable, CustomStringConvertible

An enumeration defining HTTP methods as detailed in RFC 7231 §4.3

API

  • get

    The “GET” method

    Declaration

    Swift

    case get = "GET"
  • The “POST” method

    Declaration

    Swift

    case post = "POST"
  • put

    The “PUT” method

    Declaration

    Swift

    case put = "PUT"
  • The “DELETE” method

    Declaration

    Swift

    case delete = "DELETE"
  • The “CONNECT” method

    Declaration

    Swift

    case connect = "CONNECT"
  • The “HEAD” method

    Declaration

    Swift

    case head = "HEAD"
  • The “OPTIONS” method

    Declaration

    Swift

    case options = "OPTIONS"
  • The “PATCH” method

    Declaration

    Swift

    case patch = "PATCH"
  • The “TRACE” method

    Declaration

    Swift

    case trace = "TRACE"

Equatable

  • Declaration

    Swift

    public static func == (lhs: RequestMethod, rhs: RequestMethod) -> Bool

Hashable

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)

CustomStringConvertible

  • Declaration

    Swift

    public var description: String { get }