123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
-
- public static let connect = HTTPMethod(rawValue: "CONNECT")
-
- public static let delete = HTTPMethod(rawValue: "DELETE")
-
- public static let get = HTTPMethod(rawValue: "GET")
-
- public static let head = HTTPMethod(rawValue: "HEAD")
-
- public static let options = HTTPMethod(rawValue: "OPTIONS")
-
- public static let patch = HTTPMethod(rawValue: "PATCH")
-
- public static let post = HTTPMethod(rawValue: "POST")
-
- public static let put = HTTPMethod(rawValue: "PUT")
-
- public static let trace = HTTPMethod(rawValue: "TRACE")
- public let rawValue: String
- public init(rawValue: String) {
- self.rawValue = rawValue
- }
- }
|