HTTP Methods
  • 11 Jul 2024
  • 1 Minute to read
  • PDF

HTTP Methods

  • PDF

Article summary

Overview

The HTTP Methods rule sets the HTTP methods available to clients, to enable a client payload, and to set the maximum payload size (in bytes).

Configure the Rule

Here, we'll describe how to configure the rule with the Delivery Service Management UI.

API Users may choose to build the site configuration offline.

To configure an HTTP Methods rule:

  1. Navigate to the Select Rule dialog.
  2. In the Select Rule dialog, choose HTTP Methods.
  3. Set the rule attributes.
  • From the Allow Methods dropdown, select/unselect the relevant methods.

    Note: When the POST method is enabled, POST requests are not stored in the CDN's cache. They are proxied to the origin server for handling.

  • Toggle Allow Client Payload On or Off to enable or disable the acceptance of payloads with incoming requests.
  • Set the Max Payload Size, in bytes.
    HTTPMethodsRule.png
  1. Choose Add Rule.

SVTA Component: QW.HTTPMethodsACL

When you save the configuration version, the QW.HTTPMethodsACL component is added to the JSON configuration.

This is a private feature developed by Qwilt. In the JSON format, private features are nested within the MI.PrivateFeaturesList object, in the "generic-metadata-value" "features" field.

This example enables the GET, POST, and PUT methods; it allows a client payload of up to ten million bytes:

{
	"generic-metadata-type": "MI.PrivateFeatureList",
	"generic-metadata-value": {
		"features": [
			{
				"feature-oid": "Qwilt",
				"feature-type": "QW.HttpMethodsAcl",
				"feature-value": {
					"allowed-methods": [
						"GET",
						"POST",
						"PUT"
					],
					"allow-client-payload": true,
					"client-payload-max-size": 10000000
				}
			}
		]
	}
}


AttributeValid Values
allowed-methodsPOST, PUT, GET, DELETE, OPTIONS, HEAD
(Note that POST requests are proxied to the origin server for handling.)
allow-client-payloadtrue, false
client-payload-max-sizeany integer (bytes)

Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.