---
lang: en
title: 'API docs: express.middlewarecontext._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/express
permalink: /doc/en/lb4/apidocs.express.middlewarecontext._constructor_.html
---

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

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [MiddlewareContext](./express.middlewarecontext.md) &gt; [(constructor)](./express.middlewarecontext._constructor_.md)

## MiddlewareContext.(constructor)

Constructor for `MiddlewareContext`

<b>Signature:</b>

```typescript
constructor(request: Request, response: Response, parent?: Context, name?: string);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  request | Request | Express request object |
|  response | Response | Express response object |
|  parent | [Context](./context.context.md) | Parent context |
|  name | string | Name of the middleware context |


