UNPKG

http-micro

Version:

Micro-framework on top of node's http module

16 lines (15 loc) 479 B
import { MatchResult } from "./router"; export declare class RouteContext { params: any; private _matches; private _pendingRoutePath; private _currentMatch; constructor(pathname: string); push(match: MatchResult<any>): void; pop(): MatchResult<any>; getPendingRoutePath(): string; getMatches(): MatchResult<any>[]; getCurrentMatch(): MatchResult<any>; private _setPendingRoutePath(value); private _getLastMatch(); }