跳转到内容
搜索文档

http.request.cookies

http.request.cookiesMap<Array<String>>

The Cookie HTTP header associated with a request represented as a Map (associative array).

Requires a Cloudflare Pro, Business, or Enterprise plan.

The cookie names are URL decoded. If two cookies have the same name after decoding, their value arrays are merged.

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

Example value:

{ "app": ["test"] }

Example usage:

any(http.request.cookies["app"][*] == "test")
Categories:
  • Request
  • Headers

这篇文档对您有帮助吗?