Constructors
constructor
- new ExpressAdapter(config): ExpressAdapter
Properties
Private
config
Private
performanceManager
Private
securityManager
Methods
Private
applyCompression
- applyCompression(req, res, data, originalMethod): Promise<void>
Parameters
- req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
- res: Response<any, Record<string, any>>
- data: any
- originalMethod: ((data) => Response<any, Record<string, any>>)
- (data): Response<any, Record<string, any>>
Returns Response<any, Record<string, any>>
Returns Promise<void>
applyMiddleware
- applyMiddleware(app): void
Returns void
createFileUploadMiddleware
- createFileUploadMiddleware(): ExpressMiddleware
createRateLimitMiddleware
Private
getClientIP
- getClientIP(req): string
Parameters
- req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
Returns string
getSecurityManager
- getSecurityManager(): SecurityManager
Private
shouldCheckCSRF
- shouldCheckCSRF(req): boolean
Parameters
- req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
Returns boolean