> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# handleRequest

> Route a serverless event through the Hono app and return a normalized response.

Convert a serverless event into a standard `Request`, route it through the Hono
app, and return a normalized `ServerlessResponse`.

## **Parameters**

**`app`** `{ fetch: (req: Request) => Promise<Response> }` — required

A Hono-compatible application with a `fetch` method.

---

**`event`** `ServerlessEvent` — required

The incoming serverless event. Properties include `httpMethod`, `method`,
`headers`, `body`, `path`, `rawPath`, and `queryStringParameters`.

---

## **Returns**

`Promise<ServerlessResponse>` -- A normalized response with `statusCode`,
`headers`, and `body`.

## **Example**

```typescript {5}
import { ServerlessAdapter } from '@signalwire/sdk';

const adapter = new ServerlessAdapter('lambda');

const response = await adapter.handleRequest(app, lambdaEvent);
console.log(response.statusCode, response.body);
```