Module

Peregrine.Http.Method

Package
purescript-peregrine
Repository
maxdeviant/peregrine

#Method Source

data Method

An HTTP request method.

Constructors

Instances

#alwaysSupportsPayload Source

alwaysSupportsPayload :: Method -> Boolean

Returns whether an HTTP request with the indicated method always supports a payload.

The following methods always support payloads:

  • PUT
  • POST
  • DELETE
  • PATCH

The following methods do not always support payloads:

  • GET
  • HEAD
  • CONNECT
  • TRACE
  • OPTIONS