RequestMethod
public enum RequestMethod : String, Equatable, Hashable, CustomStringConvertible
An enumeration defining HTTP methods as detailed in RFC 7231 §4.3
-
The “GET” method
Declaration
Swift
case get = "GET"
-
The “POST” method
Declaration
Swift
case post = "POST"
-
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"
-
Declaration
Swift
public static func == (lhs: RequestMethod, rhs: RequestMethod) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var description: String { get }