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

# BodyStream

> The part of a Node readable stream the adapters use, so neither adapter has to name a framework's own request type.

The part of a Node readable stream the adapters use, so neither adapter has to
name a framework's own request type.

## Methods

### on()

#### Call Signature

```ts theme={null}
on(event, listener): unknown;
```

Each chunk of the body, in order.

##### Parameters

###### event

`"data"`

###### listener

(`chunk`) => `void`

##### Returns

`unknown`

#### Call Signature

```ts theme={null}
on(event, listener): unknown;
```

The body is complete.

##### Parameters

###### event

`"end"`

###### listener

() => `void`

##### Returns

`unknown`

#### Call Signature

```ts theme={null}
on(event, listener): unknown;
```

The stream failed; the adapter rejects with the error.

##### Parameters

###### event

`"error"`

###### listener

(`error`) => `void`

##### Returns

`unknown`
