HTTPRequestMethod
public enum HTTPRequestMethod
Represents the HTTP method used to issue a request.
-
Represents the HTTP
GET
method.Declaration
Swift
case get
-
Represents the HTTP
HEAD
method.Declaration
Swift
case head
-
Represents the HTTP
POST
method.Declaration
Swift
case post
-
Represents the HTTP
PUT
method.Declaration
Swift
case put
-
Represents the HTTP
PATCH
method.Declaration
Swift
case patch
-
Represents the HTTP
DELETE
method.Declaration
Swift
case delete
-
Represents the HTTP
OPTIONS
method.Declaration
Swift
case options
-
Represents the HTTP
TRACE
method.Declaration
Swift
case trace
-
Represents the HTTP
CONNECT
method.Declaration
Swift
case connect
-
Represents any HTTP method not covered by the other
case
s.Declaration
Swift
case unknown(String)
-
Returns a string representation of the
HTTPRequestMethod
. This is always the fully-uppercased version of its name.Declaration
Swift
public var asString: String