HTTPMethod
public struct HTTPMethod : RawRepresentable, Equatable, Hashable, Sendable
Type representing HTTP methods. Raw String value is stored and compared case-sensitively, so
HTTPMethod.get != HTTPMethod(rawValue: "get").
-
CONNECTmethod.Declaration
Swift
public static let connect: HTTPMethod -
DELETEmethod.Declaration
Swift
public static let delete: HTTPMethod -
GETmethod.Declaration
Swift
public static let get: HTTPMethod -
HEADmethod.Declaration
Swift
public static let head: HTTPMethod -
OPTIONSmethod.Declaration
Swift
public static let options: HTTPMethod -
PATCHmethod.Declaration
Swift
public static let patch: HTTPMethod -
POSTmethod.Declaration
Swift
public static let post: HTTPMethod -
PUTmethod.Declaration
Swift
public static let put: HTTPMethod -
QUERYmethod.Declaration
Swift
public static let query: HTTPMethod -
TRACEmethod.Declaration
Swift
public static let trace: HTTPMethod -
Declaration
Swift
public let rawValue: String -
Declaration
Swift
public init(rawValue: String)
View on GitHub
Install in Dash