HTTPMethod

public enum HTTPMethod : String, CustomStringConvertible

The HTTPMethod enum represents the various verbs used in an HTTP request.

  • GET

    Represents a GET call.

    Declaration

    Swift

    case GET
  • Represents a POST call.

    Declaration

    Swift

    case POST
  • PUT

    Represents a PUT call.

    Declaration

    Swift

    case PUT
  • Represents a PATCH call.

    Declaration

    Swift

    case PATCH
  • Represents a DELETE call.

    Declaration

    Swift

    case DELETE
  • The String representation of the HTTP method.

    Declaration

    Swift

    public var description: String { get }
  • A bool indicating if the HTTP method contains an HTTP body in its request.

    Declaration

    Swift

    public var hasBody: Bool { get }