docs/Enums/RouterMethod.html
public enum RouterMethod : String
extension RouterMethod: CustomStringConvertible
An enum to describe the HTTP method (Get, Post, Put, Delete, etc) of an HTTP request. In general they match the actual HTTP methods by the same name.
`
all
`
Signifies that the particular path mapping is not dependent on the HTTP method
Swift
case all = "ALL"
`
get
`
The HTTP method for an HTTP GET request
Swift
case get = "GET"
`
post
`
The HTTP method for an HTTP POST request
Swift
case post = "POST"
`
put
`
The HTTP method for an HTTP PUT request
Swift
case put = "PUT"
`
head
`
The HTTP method for an HTTP HEAD request
Swift
case head = "HEAD"
`
delete
`
The HTTP method for an HTTP DELETE request
Swift
case delete = "DELETE"
`
options
`
The HTTP method for an HTTP OPTIONS request
Swift
case options = "OPTIONS"
`
trace
`
The HTTP method for an HTTP TRACE request
Swift
case trace = "TRACE"
`
copy
`
The HTTP method for an HTTP COPY request
Swift
case copy = "COPY"
`
lock
`
The HTTP method for an HTTP LOCK request
Swift
case lock = "LOCK"
`
mkCol
`
The HTTP method for an HTTP MKCOL request
Swift
case mkCol = "MKCOL"
`
move
`
The HTTP method for an HTTP MOVE request
Swift
case move = "MOVE"
`
purge
`
The HTTP method for an HTTP PURGE request
Swift
case purge = "PURGE"
`
propFind
`
The HTTP method for an HTTP PROPFIND request
Swift
case propFind = "PROPFIND"
`
propPatch
`
The HTTP method for an HTTP PROPPATCH request
Swift
case propPatch = "PROPPATCH"
`
unlock
`
The HTTP method for an HTTP UNLOCK request
Swift
case unlock = "UNLOCK"
`
report
`
The HTTP method for an HTTP REPORT request
Swift
case report = "REPORT"
`
mkActivity
`
The HTTP method for an HTTP MKACTIVITY request
Swift
case mkActivity = "MKACTIVITY"
`
checkout
`
The HTTP method for an HTTP CHECKOUT request
Swift
case checkout = "CHECKOUT"
`
merge
`
The HTTP method for an HTTP MERGE request
Swift
case merge = "MERGE"
`
mSearch
`
The HTTP method for an HTTP MSEARCH request
Swift
case mSearch = "MSEARCH"
`
notify
`
The HTTP method for an HTTP NOTIFY request
Swift
case notify = "NOTIFY"
`
subscribe
`
The HTTP method for an HTTP SUBSCRIBE request
Swift
case subscribe = "SUBSCRIBE"
`
unsubscribe
`
The HTTP method for an HTTP UNSUBSCRIBE request
Swift
case unsubscribe = "UNSUBSCRIBE"
`
patch
`
The HTTP method for an HTTP PATCH request
Swift
case patch = "PATCH"
`
search
`
The HTTP method for an HTTP SEARCH request
Swift
case search = "SEARCH"
`
connect
`
The HTTP method for an HTTP CONNECT request
Swift
case connect = "CONNECT"
`
error
`
Used to mark an error handler in the list of router mappings.
Swift
case error = "ERROR"
`
unknown
`
Created when creating instances of this enum from a string that doesn’t match any of the other values.
Swift
case unknown = "UNKNOWN"
CustomStringConvertible extension
`
description
`
String format of an HTTPMethod instance.
Swift
public var description: String { get }