DiscofyAPI/node_modules/helmet/dist/middlewares/strict-transport-security/index.d.ts

9 lines
376 B
TypeScript
Raw Normal View History

2021-03-25 17:23:36 +01:00
import { IncomingMessage, ServerResponse } from "http"
export interface StrictTransportSecurityOptions {
maxAge?: number
includeSubDomains?: boolean
preload?: boolean
}
declare function strictTransportSecurity(options?: Readonly<StrictTransportSecurityOptions>): (_req: IncomingMessage, res: ServerResponse, next: () => void) => void
export default strictTransportSecurity