UNPKG

@dazejs/framework

Version:

Daze.js - A powerful web framework for Node.js

13 lines (12 loc) 492 B
import { Next } from '../../../http/middleware'; import { Request } from '../../../http/request'; import { Response } from '../../../http/response'; export declare class VerifyCsrfToken { get except(): any[]; get excludedMethods(): string[]; get invalidTokenMessage(): string; isReadVerb(method?: string): boolean; inExcept(requestPath: string): boolean; tokenValidity(request: any): boolean; resolve(request: Request, next: Next): Response | Promise<Response>; }