---
lang: en
title: 'API docs: rest.restapplication.requesthandler'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
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
get requestHandler(): HttpRequestListener;
```

## Example


```ts
const app = new RestApplication();
// setup controllers, etc.

const server = http.createServer(app.requestHandler);
server.listen(3000);

```


