Version: v2024-01-09 | Includes use: Yes |
---|
Behavior name: Allow PATCH
Allow HTTP requests using the PATCH
method. By default, GET
, HEAD
, and OPTIONS
requests are allowed, and all other methods result in a 501 error. Such content does not cache, and any PATCH
requests pass to the origin.
Important:
PATCH
requests require aContent-Length
header, even if they don't contain a body, or they result in a411 Length Required
error.Include the header with requests and set a message body size in bytes. If the request has no body, set the header to
0
.
Related behaviors:
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "allow_patch" {
rules_v2024_01_09{
name = "Allow PATCH"
comments = "Allow HTTP requests using the PATCH method."
behavior {
allow_patch {
enabled = true
}
}
}
}
"behaviors": [
{
"name": "allowPatch",
"options": {
"enabled": true
}
}
]
Options
Option | Description |
---|---|
enabled |
Allows
PATCH requests. Content does not cache.
|