Method

public enum Method : String

The HTTP request method based on specification of https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html.

  • get

    GET request method.

    Declaration

    Swift

    case get
  • HEAD request method.

    Declaration

    Swift

    case head
  • POST request method.

    Declaration

    Swift

    case post
  • put

    PUT request method.

    Declaration

    Swift

    case put
  • DELETE request method.

    Declaration

    Swift

    case delete
  • CONNECT request method.

    Declaration

    Swift

    case connect
  • OPTIONS request method.

    Declaration

    Swift

    case options
  • TRACE request method.

    Declaration

    Swift

    case trace
  • PATCH request method.

    Declaration

    Swift

    case patch