Method

public enum Method: String

Standard HTTP Methods

  • get

    Declaration

    Swift

    case get = "GET"
  • put

    Declaration

    Swift

    case put = "PUT"
  • Declaration

    Swift

    case post = "POST"
  • Declaration

    Swift

    case delete = "DELETE"
  • Declaration

    Swift

    case unknown = "Unknown"
  • The corresponding standard method string

    Declaration

    Swift

    public var description: String
  • GET

    Declaration

    Swift

    public static let GET = Http.Method.get
  • PUT

    Declaration

    Swift

    public static let PUT = Http.Method.put
  • Declaration

    Swift

    public static let POST = Http.Method.post
  • Declaration

    Swift

    public static let DELETE = Http.Method.delete
  • Declaration

    Swift

    public static let UNKNOWN = Http.Method.unknown