UNPKG

922 BTypeScriptView Raw
1/**
2 * @license
3 * MOST Web Framework 2.0 Codename Blueshift
4 * Copyright (c) 2017, THEMOST LP All rights reserved
5 *
6 * Use of this source code is governed by an BSD-3-Clause license that can be
7 * found in the LICENSE file at https://themost.io/license
8 */
9import {MapRequestHandler, PostMapRequestHandler, ProcessRequestHandler, ValidateRequestHandler} from "../types";
10import {HttpContext} from "../context";
11
12export declare class StaticHandler implements ValidateRequestHandler,
13 MapRequestHandler,
14 PostMapRequestHandler,
15 ProcessRequestHandler {
16 mapRequest(context: HttpContext, callback: (err?: Error) => void);
17
18 postMapRequest(context: HttpContext, callback: (err?: Error) => void);
19
20 processRequest(context: HttpContext, callback: (err?: Error) => void);
21
22 validateRequest(context: HttpContext, callback: (err?: Error) => void);
23
24}
25
26export declare function createInstance(): StaticHandler;
\No newline at end of file