<script type="edgeside/request-data" ...>
Produces data from the original http request, and from Cloudflare.
Name | Description | Required? |
---|---|---|
data-edgeside-output | specifies a key under which it should output data | yes |
Empty.
We use the Request Data element to ask for information gathered from the user's HTTP request. We dump the output to the screen using the Debug element. Note that the information available can vary depending on the environment the edgeside code is running in. (In wrangler preview for example, be aware that cloudflare information will not be available.)
<script type="edgeside/request-data"
data-edgeside-output="requestData">
</script>
<script type="edgeside/debug"
data-edgeside-input="requestData">
</script>