import { headerObject , Headers , setHeaderTuple , setCommonHeader , setHeader } from "./headers" ; import { SecureHeadersOptions } from "./utils" ; export class SecureHeaders { options : SecureHeadersOptions ; constructor ( options ) { this . options = options ; } headers ( ) { const headers = headerObject ( this . options ) ; return headers ; } adonis ( response ) { setHeaderTuple ( response , this . options ) ; } express ( res ) { setCommonHeader ( res , this . options ) ; } fastify ( reply ) { setHeaderTuple ( reply , this . options ) ; } hapi ( response ) { setHeaderTuple ( response , this . options ) ; } koa ( ctx ) { const headers = headerObject ( this . options ) ; ctx . set ( headers ) ; } meteor ( res ) { setHeader ( res , this . options ) ; } nest ( res ) { setCommonHeader ( res , this . options ) ; } polka ( res ) { setHeader ( res , this . options ) ; } restify ( response ) { setHeaderTuple ( response , this . options ) ; } sails ( res ) { setCommonHeader ( res , this . options ) ; } total ( res ) { setHeaderTuple ( res , this . options ) ; } }