get_property and set_property host functions. The table below lists all properties accessible through this API. HTTP headers are read and written through dedicated header methods (get_http_request_header, set_http_response_header, etc.) and are not included here.
Available properties
Property paths are case-sensitive.
The following example reads the client country and conditionally sets the log field:
Custom properties
Applications can define custom properties to pass state between related hooks. For example, a property set inon_http_response_headers is readable in on_http_response_body.
The following example marks a response as Markdown in on_http_response_headers and reads that flag in on_http_response_body: