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"
  • 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"
  • The HTTP method for an HTTP HEAD request

    Declaration

    Swift

    case head = "HEAD"
  • The HTTP method for an HTTP DELETE request

    Declaration

    Swift

    case delete = "DELETE"
  • The HTTP method for an HTTP OPTIONS request

    Declaration

    Swift

    case options = "OPTIONS"
  • The HTTP method for an HTTP TRACE request

    Declaration

    Swift

    case trace = "TRACE"
  • The HTTP method for an HTTP COPY request

    Declaration

    Swift

    case copy = "COPY"
  • The HTTP method for an HTTP LOCK request

    Declaration

    Swift

    case lock = "LOCK"
  • The HTTP method for an HTTP MKCOL request

    Declaration

    Swift

    case mkCol = "MKCOL"
  • The HTTP method for an HTTP MOVE request

    Declaration

    Swift

    case move = "MOVE"
  • The HTTP method for an HTTP PURGE request

    Declaration

    Swift

    case purge = "PURGE"
  • The HTTP method for an HTTP PROPFIND request

    Declaration

    Swift

    case propFind = "PROPFIND"
  • The HTTP method for an HTTP PROPPATCH request

    Declaration

    Swift

    case propPatch = "PROPPATCH"
  • The HTTP method for an HTTP UNLOCK request

    Declaration

    Swift

    case unlock = "UNLOCK"
  • The HTTP method for an HTTP REPORT request

    Declaration

    Swift

    case report = "REPORT"
  • The HTTP method for an HTTP MKACTIVITY request

    Declaration

    Swift

    case mkActivity = "MKACTIVITY"
  • The HTTP method for an HTTP CHECKOUT request

    Declaration

    Swift

    case checkout = "CHECKOUT"
  • The HTTP method for an HTTP MERGE request

    Declaration

    Swift

    case merge = "MERGE"
  • The HTTP method for an HTTP MSEARCH request

    Declaration

    Swift

    case mSearch = "MSEARCH"
  • The HTTP method for an HTTP NOTIFY request

    Declaration

    Swift

    case notify = "NOTIFY"
  • The HTTP method for an HTTP SUBSCRIBE request

    Declaration

    Swift

    case subscribe = "SUBSCRIBE"
  • The HTTP method for an HTTP UNSUBSCRIBE request

    Declaration

    Swift

    case unsubscribe = "UNSUBSCRIBE"
  • The HTTP method for an HTTP PATCH request

    Declaration

    Swift

    case patch = "PATCH"
  • The HTTP method for an HTTP SEARCH request

    Declaration

    Swift

    case search = "SEARCH"
  • The HTTP method for an HTTP CONNECT request

    Declaration

    Swift

    case connect = "CONNECT"
  • Used to mark an error handler in the list of router mappings.

    Declaration

    Swift

    case error = "ERROR"
  • 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

  • String format of an HTTPMethod instance.

    Declaration

    Swift

    public var description: String { get }