@tinyhttp/res
Version:
response extensions for tinyhttp
5 lines • 368 B
TypeScript
import { type IncomingMessage as Req, type ServerResponse as Res } from 'node:http';
type next = (err?: any) => void;
export declare const redirect: <Request extends Req = Req, Response extends Res = Res, Next extends next = next>(req: Request, res: Response, next: Next) => (url: string, status?: number) => Response;
export {};
//# sourceMappingURL=redirect.d.ts.map