HTTPRequestMethod
public enum HTTPRequestMethod
Represents the HTTP method used to issue a request.
-
Represents the HTTP
GETmethod.Declaration
Swift
case get
-
Represents the HTTP
HEADmethod.Declaration
Swift
case head
-
Represents the HTTP
POSTmethod.Declaration
Swift
case post
-
Represents the HTTP
PUTmethod.Declaration
Swift
case put
-
Represents the HTTP
PATCHmethod.Declaration
Swift
case patch
-
Represents the HTTP
DELETEmethod.Declaration
Swift
case delete
-
Represents the HTTP
OPTIONSmethod.Declaration
Swift
case options
-
Represents the HTTP
TRACEmethod.Declaration
Swift
case trace
-
Represents the HTTP
CONNECTmethod.Declaration
Swift
case connect
-
Represents any HTTP method not covered by the other
cases.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
View on GitHub
HTTPRequestMethod Enum Reference