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