Policies

Change Method Policy

Changes the HTTP method of the incoming request.

Configuration

The configuration shows how to configure the policy in the 'policies.json' document.

{ "name": "my-change-method-inbound-policy", "policyType": "change-method-inbound", "handler": { "export": "ChangeMethodInboundPolicy", "module": "$import(@zuplo/runtime)", "options": { "method": "POST" } } }

Policy Options

The options for this policy are specified below. All properties are optional unless specifically marked as required.

  • method <string> (Required) -
    The HTTP Method to be used, e.g. POST, GET, PUT, PATCH, etc.

Using the Policy

Read more about how policies work

Previous
Clear Request Headers