https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods https://datatracker.ietf.org/doc/html/rfc7231#section-4 Initial definition https://datatracker.ietf.org/doc/html/rfc5789#section-2 PATCH

Fields

GET,
HEAD,
POST,
PUT,
DELETE,
CONNECT,
OPTIONS,
TRACE,
PATCH,

Functions

fn cacheable(self: Method) bool

A cacheable response is an HTTP response that can be cached, that is stored to b…

A cacheable response is an HTTP response that can be cached, that is stored to be retrieved and used later, saving a new request to the server. https://developer.mozilla.org/en-US/docs/Glossary/cacheable https://datatracker.ietf.org/doc/html/rfc7231#section-4.2.3

fn idempotent(self: Method) bool

An HTTP method is idempotent if an identical request can be made once or several…

An HTTP method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state. https://developer.mozilla.org/en-US/docs/Glossary/Idempotent https://datatracker.ietf.org/doc/html/rfc7231#section-4.2.2

fn requestHasBody(self: Method) bool

Returns true if a request of this method is allowed to have a body Actual behav…

Returns true if a request of this method is allowed to have a body Actual behavior from servers may vary and should still be checked

fn responseHasBody(self: Method) bool

Returns true if a response to this method is allowed to have a body Actual beha…

Returns true if a response to this method is allowed to have a body Actual behavior from clients may vary and should still be checked

fn safe(self: Method) bool

An HTTP method is safe if it doesn’t alter the state of the server. https://dev…

An HTTP method is safe if it doesn’t alter the state of the server. https://developer.mozilla.org/en-US/docs/Glossary/Safe/HTTP https://datatracker.ietf.org/doc/html/rfc7231#section-4.2.1