HTTPMethod
public enum HTTPMethod : String
PowerUpSwift: An enum that mirrors the String
values of the HTTP methods to prevent the risk of typographical errors.
-
PowerUpSwift: Requests a representation of the specified resource. This should only retrieve data.
Declaration
Swift
case get = "GET"
-
PowerUpSwift: Asks for a response identical to that of a GET request, but without the response body.
Declaration
Swift
case head = "HEAD"
-
PowerUpSwift: 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"
-
PowerUpSwift: Replaces all current representations of the target resource with the request payload.
Declaration
Swift
case put = "PUT"
-
PowerUpSwift: Deletes the specified resource.
Declaration
Swift
case delete = "DELETE"
-
PowerUpSwift: Establishes a tunnel to the server identified by the target resource.
Declaration
Swift
case connect = "CONNECT"
-
PowerUpSwift: Used to describe the communication options for the target resource.
Declaration
Swift
case options = "OPTIONS"
-
PowerUpSwift: Performs a message loop-back test along the path to the target resource.
Declaration
Swift
case trace = "TRACE"
-
PowerUpSwift: Used to apply partial modifications to a resource.
Declaration
Swift
case patch = "PATCH"