HTTPMethod
public enum HTTPMethod : String, Equatable
Represents the HTTP methods used in REST API requests.
Each case corresponds to a standard HTTP method for interacting with RESTful services.
-
HTTP GET method, used to retrieve data from the server.
Declaration
Swift
case get = "GET" -
HTTP POST method, used to send new data to the server.
Declaration
Swift
case post = "POST" -
HTTP PUT method, used to update existing data on the server.
Declaration
Swift
case put = "PUT" -
HTTP PATCH method, used to partially update data on the server.
Declaration
Swift
case patch = "PATCH" -
HTTP DELETE method, used to remove data from the server.
Declaration
Swift
case delete = "DELETE"