---
lang: en
title: 'API docs: rest.restapplication.requesthandler'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.restapplication.requesthandler.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestApplication](./rest.restapplication.md) &gt; [requestHandler](./rest.restapplication.requesthandler.md)

## RestApplication.requestHandler property

Handle incoming HTTP(S) request by invoking the corresponding Controller method via the configured Sequence.

<b>Signature:</b>

```typescript
readonly requestHandler: HttpRequestListener;
```

## Example


```ts
const app = new RestApplication();
// setup controllers, etc.

const server = http.createServer(app.requestHandler);
server.listen(3000);

```


