UNPKG

1 kBTypeScriptView Raw
1import { OperationObject, SchemasObject } from '@loopback/openapi-v3';
2import { ResolvedRoute, RouteEntry } from '.';
3import { RequestContext } from '../request-context';
4import { OperationArgs, OperationRetval, PathParameterValues } from '../types';
5export declare class RedirectRoute implements RouteEntry, ResolvedRoute {
6 readonly sourcePath: string;
7 readonly targetLocation: string;
8 readonly statusCode: number;
9 readonly pathParams: PathParameterValues;
10 readonly schemas: SchemasObject;
11 readonly verb: string;
12 readonly path: string;
13 readonly spec: OperationObject;
14 constructor(sourcePath: string, targetLocation: string, statusCode?: number);
15 invokeHandler({ response }: RequestContext, args: OperationArgs): Promise<OperationRetval>;
16 updateBindings(requestContext: RequestContext): void;
17 describe(): string;
18 /**
19 * type guard type checker for this class
20 * @param obj
21 */
22 static isRedirectRoute(obj: any): obj is RedirectRoute;
23}