# HttpReplayOptions

Package: `@threadplane/ag-ui` · 0.3.4

Reference: /docs/api/ag-ui/HttpReplayOptions

```typescript
import type { HttpReplayOptions } from '@threadplane/ag-ui';
```

## HttpReplayOptions

Options for [httpReplay](/docs/api/ag-ui/httpReplay).

```typescript
export interface HttpReplayOptions  {
  fetch?: typeof fetch;
  headers?: Record<string, string>;
  url: (threadId: string) => string;
}
```

### fetch

Fetch implementation. Defaults to the global `fetch`.

```typescript
fetch?: typeof fetch;
```

### headers

Extra request headers, e.g. auth tokens.

```typescript
headers?: Record<string, string>;
```

### url

Builds the GET URL for a thread, e.g. `(id) => \`/api/threads/${id}/events\``.

```typescript
url: (threadId: string) => string;
```