UNPKG

1.09 kBTypeScriptView Raw
1import { HttpStatusCodes } from '../Server';
2import { Response } from './Response';
3export declare class RedirectionResponse extends Response {
4 static create(statusCode: HttpStatusCodes, location: string, alt?: string, meta?: any): RedirectionResponse;
5 static multipleChoices(location: string, alt?: string, meta?: any): RedirectionResponse;
6 static movedPermanently(location: string, alt?: string, meta?: any): RedirectionResponse;
7 static found(location: string, alt?: string, meta?: any): RedirectionResponse;
8 static seeOther(location: string, alt?: string, meta?: any): RedirectionResponse;
9 static notModified(location: string, alt?: string, meta?: any): RedirectionResponse;
10 static useProxy(location: string, alt?: string, meta?: any): RedirectionResponse;
11 static switchProxy(location: string, alt?: string, meta?: any): RedirectionResponse;
12 static temporaryRedirect(location: string, alt?: string, meta?: any): RedirectionResponse;
13 static permanentRedirect(location: string, alt?: string, meta?: any): RedirectionResponse;
14 apply(): void;
15}