@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
93 lines (46 loc) • 1.58 kB
Markdown
---
lang: en
title: 'API docs: context.interceptionhandler._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.interceptionhandler._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [InterceptionHandler](./context.interceptionhandler.md) > [(constructor)](./context.interceptionhandler._constructor_.md)
## InterceptionHandler.(constructor)
Constructs a new instance of the `InterceptionHandler` class
**Signature:**
```typescript
constructor(context?: Context, session?: ResolutionSession | undefined, source?: InvocationSource<unknown> | undefined);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
context
</td><td markdown="1">
[Context](./context.context.md)
</td><td markdown="1">
_(Optional)_
</td></tr>
<tr><td markdown="1">
session
</td><td markdown="1">
[ResolutionSession](./context.resolutionsession.md) \| undefined
</td><td markdown="1">
_(Optional)_
</td></tr>
<tr><td markdown="1">
source
</td><td markdown="1">
[InvocationSource](./context.invocationsource.md)<!-- --><unknown> \| undefined
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>