HTTPMethod

public enum HTTPMethod : String

HTTP request methods

Documentation borrowed from: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

  • get

    The GET method requests a representation of the specified resource.

    Declaration

    Swift

    case get = "GET"
  • put

    The PUT method replaces all current representations of the target resource with the request payload.

    Declaration

    Swift

    case put = "PUT"
  • The POST method 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 PATCH method is used to apply partial modifications to a resource.

    Declaration

    Swift

    case patch = "PATCH"
  • The DELETE method deletes the specified resource.

    Declaration

    Swift

    case delete = "DELETE"