CoreHandlerOptions
Defined in: types.ts:253
Core handler options
Properties
Section titled “Properties”bridge
Section titled “bridge”bridge:
Bridge
Defined in: types.ts:257
Bridge instance connecting frontend and backend adapters
optionalcors:CORSOptions
Defined in: types.ts:262
CORS configuration
headers?
Section titled “headers?”
optionalheaders:Record<string,string>
Defined in: types.ts:277
Custom response headers
log()?
Section titled “log()?”
optionallog: (message, …args) =>void
Defined in: types.ts:307
Log function
Parameters
Section titled “Parameters”message
Section titled “message”string
…any[]
Returns
Section titled “Returns”void
logging?
Section titled “logging?”
optionallogging:boolean
Defined in: types.ts:302
Enable request/response logging
maxBodySize?
Section titled “maxBodySize?”
optionalmaxBodySize:number
Defined in: types.ts:312
Maximum request body size in bytes
onError?
Section titled “onError?”
optionalonError:GenericErrorHandler
Defined in: types.ts:272
Error handler
pathPrefix?
Section titled “pathPrefix?”
optionalpathPrefix:string
Defined in: types.ts:287
Path prefix for all routes
rateLimit?
Section titled “rateLimit?”
optionalrateLimit:GenericRateLimitOptions
Defined in: types.ts:292
Rate limiting configuration
routes?
Section titled “routes?”
optionalroutes:RouteConfig[]
Defined in: types.ts:297
Route configurations for multi-endpoint support
streaming?
Section titled “streaming?”
optionalstreaming:boolean
Defined in: types.ts:317
Enable streaming support
timeout?
Section titled “timeout?”
optionaltimeout:number
Defined in: types.ts:282
Request timeout in milliseconds
validateAuth?
Section titled “validateAuth?”
optionalvalidateAuth:GenericAuthValidator
Defined in: types.ts:267
Authentication validator