Requests Documentation

Enumeration HTTPMethod

public enum HTTPMethod: String, Hashable  

An enum listing all URLRequest allowed httpMethods. Defaults to .default.

%163 HTTPMethod HTTPMethod Hashable Hashable HTTPMethod->Hashable String String HTTPMethod->String

Conforms To

Hashable
String

Enumeration Cases

`default`

case `default` = ""

GET when no body is set, POST otherwise.

get

case get = "GET"

GET.

header

case header = "HEADER"

HEADER.

post

case post = "POST"

POST.

put

case put = "PUT"

PUT.

delete

case delete = "DELETE"

DELETE.

connect

case connect = "CONNECT"

CONNECT.

options

case options = "OPTIONS"

OPTIONS.

trace

case trace = "TRACE"

TRACE.

patch

case patch = "PATCH"

PATCH.