diff options
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md index 785f9a83b..d3af1564f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -43,6 +43,14 @@ const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of po }[]; ``` +#### `request` + +`Astro.request` returns an object with the following properties: + +| Name | Type | Description | +| :----- | :------- | :--------------------------------------------------------------------------------------------------------- | +| `url` | `URL` | The URL of the request being rendered. | + ### `collection` ```jsx |