Back to Alamofire

HTTPMethod

docs/Structs/HTTPMethod.html

5.12.02.0 KB
Original Source

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").

See https://tools.ietf.org/html/rfc7231#section-4.3

`

                connect
                `

CONNECT method.

Declaration

Swift

public static let connect: HTTPMethod

`

                delete
                `

DELETE method.

Declaration

Swift

public static let delete: HTTPMethod

`

                get
                `

GET method.

Declaration

Swift

public static let get: HTTPMethod

`

                head
                `

HEAD method.

Declaration

Swift

public static let head: HTTPMethod

`

                options
                `

OPTIONS method.

Declaration

Swift

public static let options: HTTPMethod

`

                patch
                `

PATCH method.

Declaration

Swift

public static let patch: HTTPMethod

`

                post
                `

POST method.

Declaration

Swift

public static let post: HTTPMethod

`

                put
                `

PUT method.

Declaration

Swift

public static let put: HTTPMethod

`

                query
                `

QUERY method.

Declaration

Swift

public static let query: HTTPMethod

`

                trace
                `

TRACE method.

Declaration

Swift

public static let trace: HTTPMethod

`

                rawValue
                `

Declaration

Swift

public let rawValue: String

`

                init(rawValue:)
                `

Declaration

Swift

public init(rawValue: String)