Skip to content

EndpointMethod

Josh Wright edited this page Jan 14, 2021 · 2 revisions

EndpointMethod

Represents the HTTP method, or verb, of a request. There are static accessors for GET, POST, PUT, PATCH, and DELETE, but any custom one can be made with the public initializer.

public struct EndpointMethod: Equatable

Inheritance

Equatable

Initializers

init(_:)

Creates an EndpointMethod with the specified String.

public init(_ rawValue: String)

Parameters

  • rawValue: The String of the method name.

Properties

delete

DELETE method.

let delete

get

GET method.

let get

patch

PATCH method.

let patch

post

POST method.

let post

put

PUT method.

let put

rawValue

The raw string value of this method.

let rawValue: String
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally