Back to Kitura

RouterMethod

docs/docsets/Kitura.docset/Contents/Resources/Documents/Enums/RouterMethod.html

3.0.15.0 KB
Original Source

RouterMethod

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

Declaration

Swift

case all = "ALL"

`

                get
                `

The HTTP method for an HTTP GET request

Declaration

Swift

case get = "GET"

`

                post
                `

The HTTP method for an HTTP POST request

Declaration

Swift

case post = "POST"

`

                put
                `

The HTTP method for an HTTP PUT request

Declaration

Swift

case put = "PUT"

`

                head
                `

The HTTP method for an HTTP HEAD request

Declaration

Swift

case head = "HEAD"

`

                delete
                `

The HTTP method for an HTTP DELETE request

Declaration

Swift

case delete = "DELETE"

`

                options
                `

The HTTP method for an HTTP OPTIONS request

Declaration

Swift

case options = "OPTIONS"

`

                trace
                `

The HTTP method for an HTTP TRACE request

Declaration

Swift

case trace = "TRACE"

`

                copy
                `

The HTTP method for an HTTP COPY request

Declaration

Swift

case copy = "COPY"

`

                lock
                `

The HTTP method for an HTTP LOCK request

Declaration

Swift

case lock = "LOCK"

`

                mkCol
                `

The HTTP method for an HTTP MKCOL request

Declaration

Swift

case mkCol = "MKCOL"

`

                move
                `

The HTTP method for an HTTP MOVE request

Declaration

Swift

case move = "MOVE"

`

                purge
                `

The HTTP method for an HTTP PURGE request

Declaration

Swift

case purge = "PURGE"

`

                propFind
                `

The HTTP method for an HTTP PROPFIND request

Declaration

Swift

case propFind = "PROPFIND"

`

                propPatch
                `

The HTTP method for an HTTP PROPPATCH request

Declaration

Swift

case propPatch = "PROPPATCH"

`

                unlock
                `

The HTTP method for an HTTP UNLOCK request

Declaration

Swift

case unlock = "UNLOCK"

`

                report
                `

The HTTP method for an HTTP REPORT request

Declaration

Swift

case report = "REPORT"

`

                mkActivity
                `

The HTTP method for an HTTP MKACTIVITY request

Declaration

Swift

case mkActivity = "MKACTIVITY"

`

                checkout
                `

The HTTP method for an HTTP CHECKOUT request

Declaration

Swift

case checkout = "CHECKOUT"

`

                merge
                `

The HTTP method for an HTTP MERGE request

Declaration

Swift

case merge = "MERGE"

`

                mSearch
                `

The HTTP method for an HTTP MSEARCH request

Declaration

Swift

case mSearch = "MSEARCH"

`

                notify
                `

The HTTP method for an HTTP NOTIFY request

Declaration

Swift

case notify = "NOTIFY"

`

                subscribe
                `

The HTTP method for an HTTP SUBSCRIBE request

Declaration

Swift

case subscribe = "SUBSCRIBE"

`

                unsubscribe
                `

The HTTP method for an HTTP UNSUBSCRIBE request

Declaration

Swift

case unsubscribe = "UNSUBSCRIBE"

`

                patch
                `

The HTTP method for an HTTP PATCH request

Declaration

Swift

case patch = "PATCH"

`

                search
                `

The HTTP method for an HTTP SEARCH request

Declaration

Swift

case search = "SEARCH"

`

                connect
                `

The HTTP method for an HTTP CONNECT request

Declaration

Swift

case connect = "CONNECT"

`

                error
                `

Used to mark an error handler in the list of router mappings.

Declaration

Swift

case error = "ERROR"

`

                unknown
                `

Created when creating instances of this enum from a string that doesn’t match any of the other values.

Declaration

Swift

case unknown = "UNKNOWN"

CustomStringConvertible extension

`

                description
                `

String format of an HTTPMethod instance.

Declaration

Swift

public var description: String { get }