@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
39 lines (25 loc) • 1.29 kB
Markdown
lang: en
title: 'API docs: express.executeexpressrequesthandler'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/express
permalink: /doc/en/lb4/apidocs.express.executeexpressrequesthandler.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/express](./express.md) > [executeExpressRequestHandler](./express.executeexpressrequesthandler.md)
## executeExpressRequestHandler() function
Execute an Express-style callback-based request handler.
<b>Signature:</b>
```typescript
export declare function executeExpressRequestHandler(handler: ExpressRequestHandler, request: Request, response: Response): Promise<boolean>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| handler | [ExpressRequestHandler](./express.expressrequesthandler.md) | Express middleware handler function |
| request | Request | |
| response | Response | |
<b>Returns:</b>
Promise<boolean>
A promise resolved to: - `true` when the request was handled - `false` when the handler called `next()` to proceed to the next handler (middleware) in the chain.