Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

HTTPMethod

mattt edited this page Sep 18, 2020 · 2 revisions

HTTPMethod

Type representing HTTP methods. Raw String value is stored and compared case-sensitively, so HTTPMethod.get != HTTPMethod(rawValue:​ "get").

public struct HTTPMethod:​ RawRepresentable, Equatable, Hashable

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

Inheritance

Equatable, Hashable, RawRepresentable

Initializers

init(rawValue:​)

public init(rawValue:​ String)

Properties

connect

CONNECT method.

let connect

delete

DELETE method.

let delete

get

GET method.

let get

head

HEAD method.

let head

options

OPTIONS method.

let options

patch

PATCH method.

let patch

post

POST method.

let post

put

PUT method.

let put

trace

TRACE method.

let trace

rawValue

let rawValue:​ String
Types
Protocols
Global Typealiases
Clone this wiki locally