Interface: ExpressHttpPluginOptions
An interface extending the base HttpPluginOptions to include additional configuration options specific to the Express HTTP plugin. This includes options for body parsing, URL encoding, CORS, session management, cookie parsing, and response compression.
Extends
Properties
adapter
adapter:
HttpAdapterClass
The HTTP adapter to use. Express or Fastify are supported.
Inherited from
basePath
basePath:
string
The base path for the HTTP server.
Inherited from
bodyParser
bodyParser:
boolean
Whether to use the body parser middleware.
Inherited from
bodyParserOptions?
optionalbodyParserOptions?:OptionsJson
Options for configuring the body parser middleware.
Overrides
HttpPluginOptions.bodyParserOptions
compression
compression:
boolean
Whether to use compression middleware.
Inherited from
compressionOptions?
optionalcompressionOptions?:CompressionOptions
Options for configuring the compression middleware.
Overrides
HttpPluginOptions.compressionOptions
cookies
cookies:
boolean
Whether to use the cookie parser middleware.
Inherited from
cookiesOptions?
optionalcookiesOptions?:object
Options for configuring the cookie parser middleware.
options?
optionaloptions?:CookieParseOptions
secret?
optionalsecret?:string|string[]
Overrides
HttpPluginOptions.cookiesOptions
cors
cors:
boolean
Whether to use CORS middleware.
Inherited from
corsOptions?
optionalcorsOptions?:CorsOptions
Options for configuring the CORS middleware.
Overrides
fileUpload?
optionalfileUpload?:boolean
Whether to use the file upload (multipart/form-data) middleware. Disabled by default.
Inherited from
fileUploadOptions?
optionalfileUploadOptions?:FileUploadOptions
Options for configuring the file upload middleware.
Inherited from
HttpPluginOptions.fileUploadOptions
healthChecks?
optionalhealthChecks?:boolean
Whether to use the health check endpoints.
Inherited from
HttpPluginOptions.healthChecks
logErrors?
optionallogErrors?:boolean
Whether to log all errors.
Inherited from
logHttpErrors?
optionallogHttpErrors?:boolean
Whether to log HTTP errors.
Inherited from
HttpPluginOptions.logHttpErrors
logHttpRequests?
optionallogHttpRequests?:boolean
Whether to log HTTP requests.
Inherited from
HttpPluginOptions.logHttpRequests
logHttpResponses?
optionallogHttpResponses?:boolean
Whether to log HTTP responses.
Inherited from
HttpPluginOptions.logHttpResponses
plugin
plugin:
PluginType
Inherited from
port
port:
number
The port on which the HTTP server will listen.
Inherited from
rateLimit?
optionalrateLimit?:boolean
Whether to use HTTP rate limiting. Disabled by default.
Inherited from
rateLimitOptions?
optionalrateLimitOptions?:RateLimitOptions
Default rate limits applied to endpoints without decorator overrides.
Inherited from
HttpPluginOptions.rateLimitOptions
routeValidation?
optionalrouteValidation?:boolean
Whether to validate route compatibility during plugin registration. Defaults to true.
Inherited from
HttpPluginOptions.routeValidation
routeValidationOptions?
optionalrouteValidationOptions?:RouteValidationOptions
Actions to apply to each kind of route compatibility finding.
Inherited from
HttpPluginOptions.routeValidationOptions
session
session:
boolean
Whether to use the session middleware.
Inherited from
sessionOptions?
optionalsessionOptions?:SessionOptions
Options for configuring the session middleware.
Overrides
HttpPluginOptions.sessionOptions
timeout
timeout:
boolean
Whether to use the timeout middleware.
Inherited from
timeoutOptions?
optionaltimeoutOptions?:TimeoutOptions
Options for configuring the timeout middleware.
Inherited from
HttpPluginOptions.timeoutOptions
urlEncoded?
optionalurlEncoded?:boolean
Whether to use the URL-encoded middleware.
Inherited from
urlEncodedOptions?
optionalurlEncodedOptions?:OptionsUrlencoded
Options for configuring the URL-encoded middleware.
Overrides
HttpPluginOptions.urlEncodedOptions
version
version:
boolean
Whether to use the versioning guard.
Inherited from
versionOptions?
optionalversionOptions?:VersionOptions
Options for configuring the versioning guard.