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

# requestOptions

> Options for all crawler requests.

* **Type**: `object`

The Crawler only accepts headers from the [list of allowed headers](#param-headers).
The `Cookie` header is replaced by the cookie fetched in `login`.

## Examples

```js JavaScript icon=code theme={"system"}
{
  requestOptions: {
    proxy: 'http://algolia:password@1.1.1.1:8080',
    timeout: 10000,
    retries: 2,
    headers: {
      Authorization: 'Bearer Aerehdf==',
      Cookie: 'session=1234;',
    }
  }
}
```

## Parameters

<ParamField body="proxy" type="string">
  URL of a proxy server for all crawler requests.
</ParamField>

<ParamField body="headers" type="object">
  Headers to add to all requests.

  Supported headers are:

  * `Accept-Language`
  * `Authorization`
  * `Cookie`
</ParamField>

<ParamField body="retries" type="number" default={2}>
  Maximum number of retries for all crawler requests.
</ParamField>

<ParamField body="timeout" type="number" default={30000}>
  Maximum time in milliseconds before canceling the request.
</ParamField>
