Static Propertyswift-http-types 1.3.1HTTPTypes
get
GET
static var get: `Self` { get }
https://www.rfc-editor.org/rfc/rfc9110.html
GET
static var get: `Self` { get }
https://www.rfc-editor.org/rfc/rfc9110.html
import HTTPTypes
A set of version-independent HTTP currency types.
struct Method
The HTTP request method
struct HTTPRequest
An HTTP request message consisting of pseudo header fields and header fields.
init?(_ method: String)
Create a request method from a string. Returns nil if the string contains invalid characters defined in RFC 9110.
init?(rawValue: String)
static var connect: `Self` { get }
CONNECT
static var delete: `Self` { get }
DELETE
static var head: `Self` { get }
HEAD
static var options: `Self` { get }
OPTIONS
static var patch: `Self` { get }
PATCH
static var post: `Self` { get }
POST
static var put: `Self` { get }
PUT
static var trace: `Self` { get }
TRACE
var description: String { get }
let rawValue: String
The string value of the request.