UNPKG

@themost/web

Version:

MOST Web Framework 2.0 - Web Server Module

18 lines (16 loc) 737 B
/** * @license * MOST Web Framework 2.0 Codename Blueshift * Copyright (c) 2017, THEMOST LP All rights reserved * * Use of this source code is governed by an BSD-3-Clause license that can be * found in the LICENSE file at https://themost.io/license */ import {AuthorizeRequestHandler} from "../types"; import {HttpContext} from "../context"; export declare class RestrictAccess implements AuthorizeRequestHandler { authorizeRequest(context: HttpContext, callback: (err?: Error) => void); isRestricted(context: HttpContext, callback: (err?: Error, res?: boolean) => void) isNotRestricted(context: HttpContext, callback: (err?: Error, res?: boolean) => void) } export declare function createInstance(): RestrictAccess;