Skip to content
Back to feed

November 27, 2026 · Cloudflare

Rules - Inspect multipart part headers, preambles, and empty parts

What changed

Cloudflare Rules: Five new fields inspect multipart part headers, preamble, and empty parts; Enterprise only.

Five new Rules fields provide more detail about multipart request bodies:

Field Contents http.request.body.multipart.headers Standard and custom headers grouped by lowercase name for each part. http.request.body.multipart.headers.names Header names in original case and occurrence order for each part. http.request.body.multipart.headers.values Header values aligned with the names for each part. http.request.body.multipart.preamble Original bytes before the first boundary delimiter. http.request.body.multipart.empty_parts_count Headerless, empty-body parts skipped during parsing.

For example, match a custom header on the first parsed part:

http.request.body.multipart.headers[0]["x-upload-tag"][0] eq "review"

Header arrays preserve part association and duplicate headers. The preamble includes the line ending before the first delimiter. The empty-part count includes only parts encountered before parsing stops.

These fields require an Enterprise plan. Request body inspection and multipart parsing limits apply.

For details, refer to the multipart headers, preamble, and empty-part count field references.

Get the week’s Cloudflare changes in one email

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

See last week’s digest

Free. Unsubscribe any time.

All Rules changes