# HandlerContext Class

Module
import { HandlerContext } from "@tsed/common"
Source/packages/common/src/platform/domain/HandlerContext.ts

# Overview

class HandlerContext {
    injector: InjectorService;
    metadata: HandlerMetadata;
    request: TsED.Request;
    response: TsED.Response;
    err: any;
    args: any[];
<span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="token punctuation">{</span> injector<span class="token punctuation">,</span> request<span class="token punctuation">,</span> response<span class="token punctuation">,</span> next<span class="token punctuation">,</span> err<span class="token punctuation">,</span> metadata<span class="token punctuation">,</span> args <span class="token punctuation">}</span><span class="token punctuation">:</span> <a href="/api/common/platform/interfaces/IHandlerContext.html"><span class="token">IHandlerContext</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>
get <span class="token function">isDone</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
get <span class="token function">container</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">import</span><span class="token punctuation">(</span>"@tsed/di"<span class="token punctuation">)</span>.<a href="/api/di/class/LocalsContainer.html"><span class="token">LocalsContainer</span></a>&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">;</span>
<span class="token function">done</span><span class="token punctuation">(</span>error<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> result?<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">;</span>
<span class="token function">handle</span><span class="token punctuation">(</span>process<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">;</span>
/**
 *
 */
<span class="token function">callHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">void</span>&gt;<span class="token punctuation">;</span>
<span class="token function">next</span><span class="token punctuation">(</span>error?<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">;</span>
<span class="token function">destroy</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span>

}