@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
20 lines (19 loc) • 622 B
TypeScript
/// <reference types="node" />
import { Response } from '.';
import { Request } from '../request';
export declare class Redirect extends Response {
needWithInput: boolean;
errors: any;
flashSessions: any;
alt: any;
forceBack: boolean;
constructor(url?: string, code?: number, header?: {});
setUrl(url: string): this;
go(url: string, code?: number): this;
getUrl(): any;
back(alt?: string, code?: number): this;
withInput(): void;
with(name: any, value: any): this;
withErrors(val: any): this;
send(request: Request): Promise<void | import("http").ServerResponse>;
}