> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voqal.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Slurp URL

The `slurpUrl()` function is used to fetch the contents of a URL and return it as a string.

## Parameters

* `url` (required): The URL to fetch
* `cacheTime` (required): The time to cache content (1s/1m/etc)
* `headers` (optional): The headers to send with the request

## Configuration

To use the `slurpUrl()` function, provide the necessary parameters in your prompt. For example:

```markdown theme={null}
{{ slurpUrl("https://example.com", "1m", "header1:value1,header2:value2") }}
```
