RequestMethod

public enum RequestMethod : String

HTTP request methods.

See the various Resource.request(...) methods.

  • OPTIONS

    Declaration

    Swift

    case options
  • get

    GET

    Declaration

    Swift

    case get
  • HEAD. The HTTP method, not the body part.

    Declaration

    Swift

    case head
  • POST. Just POST. Doc comment is the same as the enum.

    Declaration

    Swift

    case post
  • put

    So you’re really reading the docs for all these, huh?

    Declaration

    Swift

    case put
  • OK then, I’ll reward your diligence. Or punish it, depending on your level of refinement.

    What’s the difference between a poorly maintained Greyhound terminal and a lobster with breast implants?

    Declaration

    Swift

    case patch
  • One’s a crusty bus station, and the other’s a busty crustacean.

    I’m here all week! Thank you for reading the documentation!

    Declaration

    Swift

    case delete