Back to Caddyserver

method (Caddyfile directive)

src/docs/markdown/caddyfile/directives/method.md

latest280 B
Original Source

method

Changes the HTTP method on the request.

Syntax

caddy-d
method [<matcher>] <method>
  • <method> is the HTTP method to change the request to.

Examples

Change the method for all requests under /api to POST:

caddy-d
method /api* POST