new
CamouflageHttp(config?: CamouflageHttpConfig,httpOptions?: http.ServerOptions,httpsOptions?: https.ServerOptions,cacheOptions?: apicache.Options,)
addHook: () => void
getHelpers: () => Helpers
loadConfigFromJson: (configFilePath: string) => void
setServerOptionsHttp: (options: http.ServerOptions) => void
setServerOptionsHttp2: (options: spdy.server.ServerOptions) => void
setServerOptionsHttps: (options: https.ServerOptions) => void
setupCacheWithOptions: (options: apicache.Options) => void
setupCompressionWithOptions: (compressionOpts: CompressionOptions) => void
setupCorsWithOptions: (corsOptions: cors.CorsOptions | cors.CorsOptionsDelegate<Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>>) => void
setupValidationWithOptions: (validationOpts: any) => void
private
app: express.Application | null
private
cacheOptions: apicache.Options | null
private
compressionOpts: CompressionOptions | null
private
config: CamouflageHttpConfig | null
private
corsOptions:
private
getRunningServers: () => number
private
helpers: Helpers
private
http2Server: Server | null
private
http2ServerOptions: spdy.server.ServerOptions | null
private
httpServer: Server | null
private
httpServerOptions: http.ServerOptions | null
private
httpsServer: Server | null
private
httpsServerOptions: https.ServerOptions | null
private
validationOpts: any | null