Skip to content

HTTPMethod

pokryfka edited this page Oct 1, 2020 · 2 revisions

HTTPMethod

public struct HTTPMethod: RawRepresentable, Equatable

Inheritance

Codable, Equatable, RawRepresentable

Initializers

init?(rawValue:)

public init?(rawValue: String)

init(from:)

public init(from decoder: Decoder) throws

Properties

rawValue

var rawValue: String

GET

var GET: HTTPMethod

POST

var POST: HTTPMethod

PUT

var PUT: HTTPMethod

PATCH

var PATCH: HTTPMethod

DELETE

var DELETE: HTTPMethod

OPTIONS

var OPTIONS: HTTPMethod

HEAD

var HEAD: HTTPMethod

Methods

RAW(value:)

public static func RAW(value: String) -> HTTPMethod?

encode(to:)

public func encode(to encoder: Encoder) throws