UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

36 lines (23 loc) 982 B
--- lang: en title: 'API docs: rest.restapplication.requesthandler' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/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); ```