Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The Cloudflare Rules language supports these HTTP body fields.

`http.request.body.raw` `String`

Represents the unaltered HTTP request body.
The unaltered HTTP request body.

When the value of `http.request.body.truncated` is true, the return value may be truncated.

Expand Down Expand Up @@ -58,7 +58,7 @@ This field may have a value larger than the one returned by `len(http.request.bo

`http.request.body.form` `Map<Array<String>>`

Represents the HTTP request body of a form as a Map (or associative array). Populated when the Content-Type header is `application/x-www-form-urlencoded`.
The HTTP request body of a form represented as a Map (or associative array). Populated when the `Content-Type` header is `application/x-www-form-urlencoded`.

The values are not pre-processed and retain the original case used in the request.

Expand All @@ -83,9 +83,9 @@ Example value:

`http.request.body.form.names` `Array<String>`

Represents the names of the form fields in an HTTP request where the content type is `application/x-www-form-urlencoded`.
The names of the form fields in an HTTP request where the content type is `application/x-www-form-urlencoded`.

The names are not pre-processed and retain the original case used in the request. They are listed in the same order as in the request.
Names are not pre-processed and retain the original case used in the request. They are listed in the same order as in the request.

Duplicate names are listed multiple times.

Expand All @@ -109,7 +109,7 @@ Example value:

`http.request.body.form.values` `Array<String>`

Represents the values of the form fields in an HTTP request where the content type is `application/x-www-form-urlencoded`.
The values of the form fields in an HTTP request where the content type is `application/x-www-form-urlencoded`.

The values are not pre-processed and retain the original case used in the request. They are listed in the same order as in the request.

Expand Down Expand Up @@ -149,7 +149,7 @@ This field is available on all Cloudflare plans.

`http.request.body.multipart` `Map<Array<String>>`

A Map (or associative array) of multipart names to multipart values in the request body.
A Map (or associative array) representation of multipart names to multipart values in the request body.

Example value:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Cloudflare Rules language supports these HTTP header fields.

`http.request.headers` `Map<Array<String>>`

Represents HTTP request headers as a Map (or associative array).
The HTTP request headers represented as a Map (or associative array).

The keys of the associative array are the names of HTTP request headers converted to lowercase.

Expand Down Expand Up @@ -44,7 +44,7 @@ Example value:

`http.request.headers.names` `Array<String>`

Represents the names of the headers in the HTTP request.
The names of the headers in the HTTP request.

The names are not pre-processed and retain the original case used in the request.

Expand Down Expand Up @@ -72,7 +72,7 @@ Example value: `["content-type"]`

`http.request.headers.values` `Array<String>`

Represents the values of the headers in the HTTP request.
The values of the headers in the HTTP request.

The values are not pre-processed and retain the original case used in the request.

Expand Down Expand Up @@ -122,7 +122,7 @@ When `true`, `http.request.headers`, `http.request.headers.names`, and `http.req

`http.request.accepted_languages` `Array<String>`

Represents the list of language tags provided in the [`Accept-Language`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language) HTTP request header, sorted by weight (`;q=<weight>`, with a default weight of `1`) in descending order.
List of language tags provided in the [`Accept-Language`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language) HTTP request header, sorted by weight (`;q=<weight>`, with a default weight of `1`) in descending order.

If the HTTP header is not present in the request or is empty, `http.request.accepted_languages[0]` will return a "[missing value](/ruleset-engine/rules-language/values/#notes)", which the `concat()` function will handle as an empty string.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Cloudflare Rules language supports these HTTP response fields.

`http.response.code` `Integer`

Represents the HTTP status code returned to the client, either set by a Cloudflare product or returned by the origin server.
The HTTP status code returned to the client, either set by a Cloudflare product or returned by the origin server.

Example value:
`403`
Expand All @@ -25,7 +25,7 @@ Example value:

`http.response.headers` `Map<Array<String>>`

Represents HTTP response headers as a Map (or associative array).
The HTTP response headers represented as a Map (or associative array).

When there are repeating headers, the array includes them in the order they appear in the response. The keys convert to lowercase.

Expand All @@ -47,7 +47,7 @@ Example value:

## `http.response.headers.names`

Represents the names of the headers in the HTTP response. The names are not pre-processed and retain the original case used in the response.
The names of the headers in the HTTP response. The names are not pre-processed and retain the original case used in the response.

The order of header names is not guaranteed but will match `http.response.headers.values`.

Expand All @@ -67,7 +67,7 @@ Example value: `["content-type"]`

## `http.response.headers.values`

Represents the values of the headers in the HTTP response.
The values of the headers in the HTTP response.

The values are not pre-processed and retain the original case used in the response.

Expand Down Expand Up @@ -155,7 +155,7 @@ Note: This field is only available in [HTTP response header modifications](/rule

`cf.response.error_type` `String`

Contains a string with the type of error in the response being returned. The default value is an empty string (`""`).
A string with the type of error in the response being returned. The default value is an empty string (`""`).

The available values are the following:

Expand Down
Loading
Loading