express-mesh
Version:
A Gentics Mesh frontend for Express.
2,429 lines • 145 kB
HTML
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>IMeshResponse | ExpressMesh</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script src="../assets/js/modernizr.js"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">ExpressMesh</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_lib_mesh_.html">"lib/mesh"</a>
</li>
<li>
<a href="_lib_mesh_.imeshresponse.html">IMeshResponse</a>
</li>
</ul>
<h1>Interface IMeshResponse</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Wrapper for the express.Response.
We can use them to add properties to the response.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="tsd-signature-type">Response</span>
<ul class="tsd-hierarchy">
<li>
<span class="target">IMeshResponse</span>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel">
<h3>Implements</h3>
<ul class="tsd-hierarchy">
<li><span class="tsd-signature-type">EventEmitter</span></li>
<li><span class="tsd-signature-type">WritableStream</span></li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-inherited">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-inherited">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#charset" class="tsd-kind-icon">charset</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#headerssent" class="tsd-kind-icon">headers<wbr>Sent</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#json" class="tsd-kind-icon">json</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#jsonp" class="tsd-kind-icon">jsonp</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#locals" class="tsd-kind-icon">locals</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#send" class="tsd-kind-icon">send</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#senddate" class="tsd-kind-icon">send<wbr>Date</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#statuscode" class="tsd-kind-icon">status<wbr>Code</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#writable" class="tsd-kind-icon">writable</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-inherited">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#_write" class="tsd-kind-icon">_write</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#addlistener" class="tsd-kind-icon">add<wbr>Listener</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#addtrailers" class="tsd-kind-icon">add<wbr>Trailers</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#attachment" class="tsd-kind-icon">attachment</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#clearcookie" class="tsd-kind-icon">clear<wbr>Cookie</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#contenttype" class="tsd-kind-icon">content<wbr>Type</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#cookie" class="tsd-kind-icon">cookie</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#download" class="tsd-kind-icon">download</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#emit" class="tsd-kind-icon">emit</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#end" class="tsd-kind-icon">end</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#format" class="tsd-kind-icon">format</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#get" class="tsd-kind-icon">get</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#getheader" class="tsd-kind-icon">get<wbr>Header</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#header" class="tsd-kind-icon">header</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#links" class="tsd-kind-icon">links</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#listeners" class="tsd-kind-icon">listeners</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#location" class="tsd-kind-icon">location</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#on" class="tsd-kind-icon">on</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#once" class="tsd-kind-icon">once</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#redirect" class="tsd-kind-icon">redirect</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#removeheader" class="tsd-kind-icon">remove<wbr>Header</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#render" class="tsd-kind-icon">render</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#sendfile" class="tsd-kind-icon">send<wbr>File</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#sendstatus" class="tsd-kind-icon">send<wbr>Status</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#sendfile-1" class="tsd-kind-icon">sendfile</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#set" class="tsd-kind-icon">set</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#setheader" class="tsd-kind-icon">set<wbr>Header</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#setmaxlisteners" class="tsd-kind-icon">set<wbr>Max<wbr>Listeners</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#status" class="tsd-kind-icon">status</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#type" class="tsd-kind-icon">type</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#write" class="tsd-kind-icon">write</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#writecontinue" class="tsd-kind-icon">write<wbr>Continue</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="_lib_mesh_.imeshresponse.html#writehead" class="tsd-kind-icon">write<wbr>Head</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static"><a href="_lib_mesh_.imeshresponse.html#listenercount" class="tsd-kind-icon">listener<wbr>Count</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">new IMesh<wbr>Response<span class="tsd-signature-symbol">(</span>opts<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">WritableOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_lib_mesh_.imeshresponse.html" class="tsd-signature-type">IMeshResponse</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Writable.__constructor</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L1690">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:1690</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> opts: <span class="tsd-signature-type">WritableOptions</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_lib_mesh_.imeshresponse.html" class="tsd-signature-type">IMeshResponse</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="charset" class="tsd-anchor"></a>
<h3>charset</h3>
<div class="tsd-signature tsd-kind-icon">charset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<p>Inherited from Response.charset</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L793">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:793</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="headerssent" class="tsd-anchor"></a>
<h3>headers<wbr>Sent</h3>
<div class="tsd-signature tsd-kind-icon">headers<wbr>Sent<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<p>Inherited from Response.headersSent</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L690">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:690</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="json" class="tsd-anchor"></a>
<h3>json</h3>
<div class="tsd-signature tsd-kind-icon">json<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Send</span></div>
<aside class="tsd-sources">
<p>Inherited from Response.json</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L485">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:485</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Send JSON response.</p>
</div>
<p>Examples:</p>
<pre><code>res.json(<span class="hljs-literal">null</span>);
res.json({ <span class="hljs-string">user:</span> <span class="hljs-string">'tj'</span> });
res.json(<span class="hljs-number">500</span>, <span class="hljs-string">'oh noes!'</span>);
res.json(<span class="hljs-number">404</span>, <span class="hljs-string">'I dont have that'</span>);
</code></pre>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="jsonp" class="tsd-anchor"></a>
<h3>jsonp</h3>
<div class="tsd-signature tsd-kind-icon">jsonp<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Send</span></div>
<aside class="tsd-sources">
<p>Inherited from Response.jsonp</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L497">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:497</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Send JSON response with JSONP callback support.</p>
</div>
<p>Examples:</p>
<pre><code>res.jsonp(<span class="hljs-literal">null</span>);
res.jsonp({ <span class="hljs-string">user:</span> <span class="hljs-string">'tj'</span> });
res.jsonp(<span class="hljs-number">500</span>, <span class="hljs-string">'oh noes!'</span>);
res.jsonp(<span class="hljs-number">404</span>, <span class="hljs-string">'I dont have that'</span>);
</code></pre>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="locals" class="tsd-anchor"></a>
<h3>locals</h3>
<div class="tsd-signature tsd-kind-icon">locals<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<aside class="tsd-sources">
<p>Inherited from Response.locals</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L791">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:791</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="send" class="tsd-anchor"></a>
<h3>send</h3>
<div class="tsd-signature tsd-kind-icon">send<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Send</span></div>
<aside class="tsd-sources">
<p>Inherited from Response.send</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L473">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:473</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Send a response.</p>
</div>
<p>Examples:</p>
<pre><code>res.<span class="hljs-built_in">send</span>(new Buffer(<span class="hljs-string">'wahoo'</span>))<span class="hljs-comment">;</span>
res.<span class="hljs-built_in">send</span>({ some: <span class="hljs-string">'json'</span> })<span class="hljs-comment">;</span>
res.<span class="hljs-built_in">send</span>(<span class="hljs-string">'<p>some html</p>'</span>)<span class="hljs-comment">;</span>
res.<span class="hljs-built_in">send</span>(<span class="hljs-number">404</span>, <span class="hljs-string">'Sorry, cant find that'</span>)<span class="hljs-comment">;</span>
res.<span class="hljs-built_in">send</span>(<span class="hljs-number">404</span>)<span class="hljs-comment">;</span>
</code></pre>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="senddate" class="tsd-anchor"></a>
<h3>send<wbr>Date</h3>
<div class="tsd-signature tsd-kind-icon">send<wbr>Date<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<p>Inherited from ServerResponse.sendDate</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L457">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:457</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="statuscode" class="tsd-anchor"></a>
<h3>status<wbr>Code</h3>
<div class="tsd-signature tsd-kind-icon">status<wbr>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<p>Inherited from ServerResponse.statusCode</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L455">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:455</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="writable" class="tsd-anchor"></a>
<h3>writable</h3>
<div class="tsd-signature tsd-kind-icon">writable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<p>Inherited from Writable.writable</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L1690">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:1690</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="_write" class="tsd-anchor"></a>
<h3>_write</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">_write<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, encoding<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">_write<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, encoding<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Writable._write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L1692">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:1692</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>data: <span class="tsd-signature-type">Buffer</span></h5>
</li>
<li>
<h5>encoding: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>callback: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Writable._write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L1693">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:1693</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>data: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>encoding: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>callback: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="addlistener" class="tsd-anchor"></a>
<h3>add<wbr>Listener</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">add<wbr>Listener<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventEmitter</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.addListener</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L413">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:413</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>listener: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">EventEmitter</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="addtrailers" class="tsd-anchor"></a>
<h3>add<wbr>Trailers</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">add<wbr>Trailers<span class="tsd-signature-symbol">(</span>headers<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.addTrailers</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L461">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:461</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>headers: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="attachment" class="tsd-anchor"></a>
<h3>attachment</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">attachment<span class="tsd-signature-symbol">(</span>filename<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.attachment</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L669">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:669</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set <em>Content-Disposition</em> header to <em>attachment</em> with optional <code>filename</code>.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> filename: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="clearcookie" class="tsd-anchor"></a>
<h3>clear<wbr>Cookie</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">clear<wbr>Cookie<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.clearCookie</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L705">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:705</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Clear cookie <code>name</code>.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <span class="tsd-signature-type">any</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="contenttype" class="tsd-anchor"></a>
<h3>content<wbr>Type</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">content<wbr>Type<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.contentType</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L590">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:590</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set <em>Content-Type</em> response header with <code>type</code> through <code>mime.lookup()</code>
when it does not contain "/", or set the Content-Type to <code>type</code> otherwise.</p>
</div>
<p>Examples:</p>
<pre><code><span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('.html')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('html')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('json')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('application/json')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('png')</span>;</span>
</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>type: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="cookie" class="tsd-anchor"></a>
<h3>cookie</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">cookie<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CookieOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
<li class="tsd-signature tsd-kind-icon">cookie<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CookieOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
<li class="tsd-signature tsd-kind-icon">cookie<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.cookie</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L724">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:724</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set cookie <code>name</code> to <code>val</code>, with the given <code>options</code>.</p>
</div>
<p>Options:</p>
<ul>
<li><code>maxAge</code> max-age in milliseconds, converted to <code>expires</code></li>
<li><code>signed</code> sign the cookie</li>
<li><code>path</code> defaults to "/"</li>
</ul>
<p>Examples:</p>
<p> // "Remember Me" for 15 minutes
res.cookie('rememberme', '1', { expires: new Date(Date.now() + 900000), httpOnly: true });</p>
<p> // save as above
res.cookie('rememberme', '1', { maxAge: 900000, httpOnly: true })</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>val: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>options: <span class="tsd-signature-type">CookieOptions</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.cookie</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L725">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:725</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>val: <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>options: <span class="tsd-signature-type">CookieOptions</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.cookie</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L726">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:726</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>val: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="download" class="tsd-anchor"></a>
<h3>download</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">download<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">download<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, filename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">download<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Errback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">download<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, filename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Errback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.download</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L571">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:571</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Transfer the file at the given <code>path</code> as an attachment.</p>
</div>
<p>Optionally providing an alternate attachment <code>filename</code>,
and optional callback <code>fn(err)</code>. The callback is invoked
when the data transfer is complete, or when an error has
ocurred. Be sure to check <code>res.headerSent</code> if you plan to respond.</p>
<p>This method uses <code>res.sendfile()</code>.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.download</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L572">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:572</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>filename: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.download</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L573">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:573</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>fn: <span class="tsd-signature-type">Errback</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.download</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L574">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:574</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>filename: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>fn: <span class="tsd-signature-type">Errback</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="emit" class="tsd-anchor"></a>
<h3>emit</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">emit<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, <span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.emit</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L420">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:420</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
<a name="end" class="tsd-anchor"></a>
<h3>end</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, cb<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, cb<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, encoding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, cb<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, encoding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.end</p>
<p>Overwrites Writable.end</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L464">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:464</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.end</p>
<p>Overwrites Writable.end</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L465">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:465</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cb: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.end</p>
<p>Overwrites Writable.end</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L466">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:466</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>str: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cb: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.end</p>
<p>Overwrites Writable.end</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L467">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:467</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>str: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> encoding: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cb: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.end</p>
<p>Overwrites Writable.end</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L468">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:468</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> data: <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> encoding: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="format" class="tsd-anchor"></a>
<h3>format</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">format<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.format</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L662">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:662</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Respond to the Acceptable formats using an <code>obj</code>
of mime-type callbacks.</p>
</div>
<p>This method uses <code>req.accepted</code>, an array of
acceptable types ordered by their quality values.
When "Accept" is not present the <em>first</em> callback
is invoked, otherwise the first match is used. When
no match is performed the server responds with
406 "Not Acceptable".</p>
<p>Content-Type is set for you, however if you choose
you may alter this within the callback using <code>res.type()</code>
or <code>res.set('Content-Type', ...)</code>.</p>
<p> res.format({
'text/plain': function(){
res.send('hey');
},</p>
<pre><code> <span class="hljs-string">'text/html'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{
res.send(<span class="hljs-string">'<p>hey</p>'</span>);
},
<span class="hljs-string">'appliation/json'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{
res.send({ message: <span class="hljs-string">'hey'</span> });
}
</code></pre><p> });</p>
<p>In addition to canonicalized MIME types you may
also use extnames mapped to these types:</p>
<p> res.format({
text: function(){
res.send('hey');
},</p>
<pre><code> html: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{
res.send(<span class="hljs-string">'<p>hey</p>'</span>);
},
json: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{
res.send({ message: <span class="hljs-string">'hey'</span> });
}
</code></pre><p> });</p>
<p>By default Express passes an <code>Error</code>
with a <code>.status</code> of 406 to <code>next(err)</code>
if a match is not made. If you provide
a <code>.default</code> callback it will be invoked
instead.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj: <span class="tsd-signature-type">any</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="get" class="tsd-anchor"></a>
<h3>get</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">get<span class="tsd-signature-symbol">(</span>field<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.get</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L697">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:697</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Get value for header <code>field</code>.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>field: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="getheader" class="tsd-anchor"></a>
<h3>get<wbr>Header</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">get<wbr>Header<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.getHeader</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L458">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:458</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="header" class="tsd-anchor"></a>
<h3>header</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">header<span class="tsd-signature-symbol">(</span>field<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
<li class="tsd-signature tsd-kind-icon">header<span class="tsd-signature-symbol">(</span>field<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.header</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L686">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:686</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>field: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.header</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L687">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:687</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>field: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> value: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="links" class="tsd-anchor"></a>
<h3>links</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">links<span class="tsd-signature-symbol">(</span>links<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.links</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L460">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:460</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set Link header field with the given <code>links</code>.</p>
</div>
<p>Examples:</p>
<p> res.links({
next: '<a href="http://api.example.com/users?page=2">http://api.example.com/users?page=2</a>',
last: '<a href="http://api.example.com/users?page=5">http://api.example.com/users?page=5</a>'
});</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>links: <span class="tsd-signature-type">any</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="listeners" class="tsd-anchor"></a>
<h3>listeners</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">listeners<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.listeners</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L419">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:419</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="location" class="tsd-anchor"></a>
<h3>location</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">location<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.location</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L756">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:756</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set the location header to <code>url</code>.</p>
</div>
<p>The given <code>url</code> can also be the name of a mapped url, for
example by default express supports "back" which redirects
to the <em>Referrer</em> or <em>Referer</em> headers or "/".</p>
<p>Examples:</p>
<p> res.location('/foo/bar').;
res.location('<a href="http://example.com">http://example.com</a>');
res.location('../login'); // /blog/post/1 -> /blog/login</p>
<p>Mounting:</p>
<p> When an application is mounted and <code>res.location()</code>
is given a path that does <em>not</em> lead with "/" it becomes
relative to the mount-point. For example if the application
is mounted at "/blog", the following would become "/blog/login".</p>
<pre><code> <span class="hljs-keyword">res</span>.location(<span class="hljs-string">'login'</span>);
</code></pre><p> While the leading slash would result in a location of "/login":</p>
<pre><code> <span class="hljs-keyword">res</span>.location(<span class="hljs-string">'/login'</span>);
</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>url: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="on" class="tsd-anchor"></a>
<h3>on</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">on<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventEmitter</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.on</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L414">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:414</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>listener: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">EventEmitter</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="once" class="tsd-anchor"></a>
<h3>once</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">once<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventEmitter</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.once</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L415">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:415</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>listener: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">EventEmitter</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="redirect" class="tsd-anchor"></a>
<h3>redirect</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">redirect<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">redirect<span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">redirect<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, status<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.redirect</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L774">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:774</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Redirect to the given <code>url</code> with optional response <code>status</code>
defaulting to 302.</p>
</div>
<p>The resulting <code>url</code> is determined by <code>res.location()</code>, so
it will play nicely with mounted apps, relative paths,
<code>"back"</code> etc.</p>
<p>Examples:</p>
<p> res.redirect('/foo/bar');
res.redirect('<a href="http://example.com">http://example.com</a>');
res.redirect(301, '<a href="http://example.com">http://example.com</a>');
res.redirect('<a href="http://example.com">http://example.com</a>', 301);
res.redirect('../login'); // /blog/post/1 -> /blog/login</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>url: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.redirect</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L775">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:775</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>status: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>url: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.redirect</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L776">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:776</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>url: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>status: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="removealllisteners" class="tsd-anchor"></a>
<h3>remove<wbr>All<wbr>Listeners</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">remove<wbr>All<wbr>Listeners<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventEmitter</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.removeAllListeners</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L417">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:417</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> event: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">EventEmitter</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="removeheader" class="tsd-anchor"></a>
<h3>remove<wbr>Header</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">remove<wbr>Header<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.removeHeader</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L459">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:459</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="removelistener" class="tsd-anchor"></a>
<h3>remove<wbr>Listener</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">remove<wbr>Listener<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventEmitter</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.removeListener</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L416">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:416</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>listener: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">EventEmitter</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="render" class="tsd-anchor"></a>
<h3>render</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">render<span class="tsd-signature-symbol">(</span>view<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Object</span>, callback<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">render<span class="tsd-signature-symbol">(</span>view<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, callback<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.render</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L788">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:788</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Render <code>view</code> with the given <code>options</code> and optional callback <code>fn</code>.
When a callback function is given a response will <em>not</em> be made
automatically, otherwise a response of <em>200</em> and <em>text/html</em> is given.</p>
</div>
<p>Options:</p>
<ul>
<li><code>cache</code> boolean hinting to the engine it should cache</li>
<li><code>filename</code> filename of the view being rendered</li>
</ul>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>view: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <span class="tsd-signature-type">Object</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, html<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>err: <span class="tsd-signature-type">Error</span></h5>
</li>
<li>
<h5>html: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.render</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L789">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:789</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>view: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, html<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>err: <span class="tsd-signature-type">Error</span></h5>
</li>
<li>
<h5>html: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="sendfile" class="tsd-anchor"></a>
<h3>send<wbr>File</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">send<wbr>File<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">send<wbr>File<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">send<wbr>File<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Errback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">send<wbr>File<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Errback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendFile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L539">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:539</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Transfer the file at the given <code>path</code>.</p>
</div>
<p>Automatically sets the <em>Content-Type</em> response header field.
The callback <code>fn(err)</code> is invoked when the transfer is complete
or when an error occurs. Be sure to check <code>res.sentHeader</code>
if you wish to attempt responding, as the header and some data
may have already been transferred.</p>
<p>Options:</p>
<ul>
<li><code>maxAge</code> defaulting to 0 (can be string converted by <code>ms</code>)</li>
<li><code>root</code> root directory for relative filenames</li>
<li><code>headers</code> object of headers to serve with file</li>
<li><code>dotfiles</code> serve dotfiles, defaulting to false; can be <code>"allow"</code> to send them</li>
</ul>
<p>Other options are passed along to <code>send</code>.</p>
<p>Examples:</p>
<p> The following example illustrates how <code>res.sendFile()</code> may
be used as an alternative for the <code>static()</code> middleware for
dynamic situations. The code backing <code>res.sendFile()</code> is actually
the same code, so HTTP cache support etc is identical.</p>
<pre><code>app.<span class="hljs-keyword">get</span>(<span class="hljs-string">'/user/:uid/photos/:file'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(req, res)</span></span>{
<span class="hljs-keyword">var</span> uid = req.params.uid
, file = req.params.file;
req.user.mayViewFilesFrom(uid, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(yes)</span></span>{
<span class="hljs-keyword">if</span> (yes) {
res.sendFile(<span class="hljs-string">'/uploads/'</span> + uid + <span class="hljs-string">'/'</span> + file);
} <span class="hljs-keyword">else</span> {
res.send(<span class="hljs-number">403</span>, <span class="hljs-string">'Sorry! you cant see that.'</span>);
}
});
});
</code></pre>
<dl class="tsd-comment-tags">
<dt>api</dt>
<dd><p>public</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendFile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L540">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:540</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>options: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendFile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L541">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:541</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>fn: <span class="tsd-signature-type">Errback</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendFile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L542">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:542</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>options: <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>fn: <span class="tsd-signature-type">Errback</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="sendstatus" class="tsd-anchor"></a>
<h3>send<wbr>Status</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">send<wbr>Status<span class="tsd-signature-symbol">(</span>code<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendStatus</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L446">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:446</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set the response HTTP status code to <code>statusCode</code> and send its string representation as the response body.</p>
</div>
<dl class="tsd-comment-tags">
<dt>link</dt>
<dd><p><a href="http://expressjs.com/4x/api.html#res.sendStatus">http://expressjs.com/4x/api.html#res.sendStatus</a></p>
<p>Examples:</p>
<p> res.sendStatus(200); // equivalent to res.status(200).send('OK')
res.sendStatus(403); // equivalent to res.status(403).send('Forbidden')
res.sendStatus(404); // equivalent to res.status(404).send('Not Found')
res.sendStatus(500); // equivalent to res.status(500).send('Internal Server Error')</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>code: <span class="tsd-signature-type">number</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="sendfile-1" class="tsd-anchor"></a>
<h3>sendfile</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">sendfile<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">sendfile<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">sendfile<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Errback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">sendfile<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Errback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendfile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L547">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:547</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>deprecated</dt>
<dd><p>Use sendFile instead.</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendfile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L551">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:551</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>deprecated</dt>
<dd><p>Use sendFile instead.</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>options: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendfile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L555">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:555</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>deprecated</dt>
<dd><p>Use sendFile instead.</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>fn: <span class="tsd-signature-type">Errback</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.sendfile</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L559">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:559</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>deprecated</dt>
<dd><p>Use sendFile instead.</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>options: <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>fn: <span class="tsd-signature-type">Errback</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="set" class="tsd-anchor"></a>
<h3>set</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">set<span class="tsd-signature-symbol">(</span>field<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
<li class="tsd-signature tsd-kind-icon">set<span class="tsd-signature-symbol">(</span>field<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.set</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L683">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:683</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set header <code>field</code> to <code>val</code>, or pass
an object of header fields.</p>
</div>
<p>Examples:</p>
<p> res.set('Foo', ['bar', 'baz']);
res.set('Accept', 'application/json');
res.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' });</p>
<p>Aliased as <code>res.header()</code>.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>field: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.set</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L684">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:684</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>field: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> value: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="setheader" class="tsd-anchor"></a>
<h3>set<wbr>Header</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">set<wbr>Header<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.setHeader</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L456">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:456</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>value: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="setmaxlisteners" class="tsd-anchor"></a>
<h3>set<wbr>Max<wbr>Listeners</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">set<wbr>Max<wbr>Listeners<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.setMaxListeners</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L418">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:418</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>n: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="status" class="tsd-anchor"></a>
<h3>status</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">status<span class="tsd-signature-symbol">(</span>code<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.status</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L431">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:431</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set status <code>code</code>.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>code: <span class="tsd-signature-type">number</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="type" class="tsd-anchor"></a>
<h3>type</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Response</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from Response.type</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/express/express.d.ts#L606">/home/pgurtler/gentics/git/express-mesh/devtypes/express/express.d.ts:606</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Set <em>Content-Type</em> response header with <code>type</code> through <code>mime.lookup()</code>
when it does not contain "/", or set the Content-Type to <code>type</code> otherwise.</p>
</div>
<p>Examples:</p>
<pre><code><span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('.html')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('html')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('json')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('application/json')</span>;</span>
<span class="hljs-title">res</span>.<span class="hljs-typedef"><span class="hljs-keyword">type</span><span class="hljs-container">('png')</span>;</span>
</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>type: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Response</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
<a name="write" class="tsd-anchor"></a>
<h3>write</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, cb<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, cb<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, encoding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, cb<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, encoding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, fd<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">(</span>chunk<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, encoding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.write</p>
<p>Overwrites Writable.write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L446">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:446</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.write</p>
<p>Overwrites Writable.write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L447">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:447</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cb: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.write</p>
<p>Overwrites Writable.write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L448">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:448</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>str: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cb: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.write</p>
<p>Overwrites Writable.write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L449">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:449</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>str: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> encoding: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cb: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.write</p>
<p>Overwrites Writable.write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L450">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:450</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>str: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> encoding: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> fd: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.write</p>
<p>Overwrites Writable.write</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L460">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:460</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>chunk: <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> encoding: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="writecontinue" class="tsd-anchor"></a>
<h3>write<wbr>Continue</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">write<wbr>Continue<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.writeContinue</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L452">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:452</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a name="writehead" class="tsd-anchor"></a>
<h3>write<wbr>Head</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">write<wbr>Head<span class="tsd-signature-symbol">(</span>statusCode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, reasonPhrase<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, headers<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">write<wbr>Head<span class="tsd-signature-symbol">(</span>statusCode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, headers<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.writeHead</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L453">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:453</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>statusCode: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> reasonPhrase: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> headers: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from ServerResponse.writeHead</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L454">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:454</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>statusCode: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> headers: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static">
<a name="listenercount" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> listener<wbr>Count</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static">
<li class="tsd-signature tsd-kind-icon">listener<wbr>Count<span class="tsd-signature-symbol">(</span>emitter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventEmitter</span>, event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from EventEmitter.listenerCount</p>
<ul>
<li>Defined in <a href="https://github.com/gentics/express-mesh/blob/master/devtypes/node/node.d.ts#L411">/home/pgurtler/gentics/git/express-mesh/devtypes/node/node.d.ts:411</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>emitter: <span class="tsd-signature-type">EventEmitter</span></h5>
</li>
<li>
<h5>event: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_index_.html">"index"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_config_.html">"lib/config"</a>
</li>
<li class="current tsd-kind-external-module">
<a href="../modules/_lib_mesh_.html">"lib/mesh"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_meshhandlerstore_.html">"lib/mesh<wbr>Handler<wbr>Store"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_meshlanguages_.html">"lib/mesh<wbr>Languages"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_meshrenderer_.html">"lib/mesh<wbr>Renderer"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_meshrestclient_.html">"lib/mesh<wbr>Rest<wbr>Client"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_meshtemplatefilters_.html">"lib/mesh<wbr>Template<wbr>Filters"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_meshutil_.html">"lib/mesh<wbr>Util"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-enum tsd-parent-kind-external-module">
<a href="../enums/_lib_mesh_.meshpermission.html" class="tsd-kind-icon">Mesh<wbr>Permission</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="../classes/_lib_mesh_.mesh.html" class="tsd-kind-icon">Mesh</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="../classes/_lib_mesh_.meshqueryparams.html" class="tsd-kind-icon">Mesh<wbr>Query<wbr>Params</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter">
<a href="_lib_mesh_.binarynode.html" class="tsd-kind-icon">Binary<wbr>Node</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshmetainfo.html" class="tsd-kind-icon">IMesh<wbr>Meta<wbr>Info</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshnav.html" class="tsd-kind-icon">IMesh<wbr>Nav</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshnavelement.html" class="tsd-kind-icon">IMesh<wbr>Nav<wbr>Element</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter">
<a href="_lib_mesh_.imeshnode.html" class="tsd-kind-icon">IMesh<wbr>Node</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshnodelistqueryparams.html" class="tsd-kind-icon">IMesh<wbr>Node<wbr>List<wbr>Query<wbr>Params</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter">
<a href="_lib_mesh_.imeshnodelistresponse.html" class="tsd-kind-icon">IMesh<wbr>Node<wbr>List<wbr>Response</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshnoderef.html" class="tsd-kind-icon">IMesh<wbr>Node<wbr>Ref</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshobject.html" class="tsd-kind-icon">IMesh<wbr>Object</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshref.html" class="tsd-kind-icon">IMesh<wbr>Ref</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshrequest.html" class="tsd-kind-icon">IMesh<wbr>Request</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshresponse.html" class="tsd-kind-icon">IMesh<wbr>Response</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#charset" class="tsd-kind-icon">charset</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#headerssent" class="tsd-kind-icon">headers<wbr>Sent</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#json" class="tsd-kind-icon">json</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#jsonp" class="tsd-kind-icon">jsonp</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#locals" class="tsd-kind-icon">locals</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#send" class="tsd-kind-icon">send</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#senddate" class="tsd-kind-icon">send<wbr>Date</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#statuscode" class="tsd-kind-icon">status<wbr>Code</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#writable" class="tsd-kind-icon">writable</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#_write" class="tsd-kind-icon">_write</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#addlistener" class="tsd-kind-icon">add<wbr>Listener</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#addtrailers" class="tsd-kind-icon">add<wbr>Trailers</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#attachment" class="tsd-kind-icon">attachment</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#clearcookie" class="tsd-kind-icon">clear<wbr>Cookie</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#contenttype" class="tsd-kind-icon">content<wbr>Type</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#cookie" class="tsd-kind-icon">cookie</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#download" class="tsd-kind-icon">download</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#emit" class="tsd-kind-icon">emit</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#end" class="tsd-kind-icon">end</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#format" class="tsd-kind-icon">format</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#get" class="tsd-kind-icon">get</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#getheader" class="tsd-kind-icon">get<wbr>Header</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#header" class="tsd-kind-icon">header</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#links" class="tsd-kind-icon">links</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#listeners" class="tsd-kind-icon">listeners</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#location" class="tsd-kind-icon">location</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#on" class="tsd-kind-icon">on</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#once" class="tsd-kind-icon">once</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#redirect" class="tsd-kind-icon">redirect</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#removeheader" class="tsd-kind-icon">remove<wbr>Header</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#render" class="tsd-kind-icon">render</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#sendfile" class="tsd-kind-icon">send<wbr>File</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#sendstatus" class="tsd-kind-icon">send<wbr>Status</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#sendfile-1" class="tsd-kind-icon">sendfile</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#set" class="tsd-kind-icon">set</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#setheader" class="tsd-kind-icon">set<wbr>Header</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#setmaxlisteners" class="tsd-kind-icon">set<wbr>Max<wbr>Listeners</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#status" class="tsd-kind-icon">status</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#type" class="tsd-kind-icon">type</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#write" class="tsd-kind-icon">write</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#writecontinue" class="tsd-kind-icon">write<wbr>Continue</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
<a href="_lib_mesh_.imeshresponse.html#writehead" class="tsd-kind-icon">write<wbr>Head</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static">
<a href="_lib_mesh_.imeshresponse.html#listenercount" class="tsd-kind-icon">listener<wbr>Count</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshsearchquery.html" class="tsd-kind-icon">IMesh<wbr>Search<wbr>Query</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshtag.html" class="tsd-kind-icon">IMesh<wbr>Tag</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshtagfamily.html" class="tsd-kind-icon">IMesh<wbr>Tag<wbr>Family</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.imeshtags.html" class="tsd-kind-icon">IMesh<wbr>Tags</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="_lib_mesh_.itagfields.html" class="tsd-kind-icon">ITag<wbr>Fields</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>