-
The
GETmethod requests a representation of the specified resource.Requests using
GETshould only retrieve data.Declaration
Swift
case get = "GET" -
The
HEADmethod asks for a response identical to that of aGETrequest, but without the response body.Declaration
Swift
case head = "HEAD" -
The
POSTmethod is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.Declaration
Swift
case post = "POST" -
The
PUTmethod replaces all current representations of the target resource with the request payload.Declaration
Swift
case put = "PUT" -
The
DELETEmethod deletes the specified resource.Declaration
Swift
case delete = "DELETE" -
The
CONNECTmethod establishes a tunnel to the server identified by the target resource.Declaration
Swift
case connect = "CONNECT" -
The
OPTIONSmethod is used to describe the communication options for the target resource.Declaration
Swift
case options = "OPTIONS" -
The
TRACEmethod performs a message loop-back test along the path to the target resource.Declaration
Swift
case trace = "TRACE" -
The
PATCHmethod is used to apply partial modifications to a resource.Declaration
Swift
case patch = "PATCH"
View on GitHub