Interface: RouteOptions<IncomingEventType, OutgoingResponseType>
Interface: RouteOptions<IncomingEventType, OutgoingResponseType>
Defines the options for creating a Route
instance.
Extends
RouteDefinition
<IncomingEventType
,OutgoingResponseType
>
Type Parameters
IncomingEventType
IncomingEventType
extends IIncomingEvent
= IIncomingEvent
OutgoingResponseType
OutgoingResponseType
= unknown
Indexable
[k: string]: unknown
Properties
bindings?
optional bindings: Record<string,
| string
| BindingResolver
| IBoundModel>;
Inherited from
children?
optional children: undefined;
Overrides
defaults?
optional defaults: Record<string, unknown>;
Inherited from
domain?
optional domain: string;
Overrides
excludeMiddleware?
optional excludeMiddleware: PipeType<IncomingEventType, OutgoingResponseType>[];
Inherited from
RouteDefinition
.excludeMiddleware
fallback?
optional fallback: boolean;
Inherited from
handler?
optional handler: MixedEventHandler<IncomingEventType, OutgoingResponseType>;
Inherited from
isInternalHeader?
optional isInternalHeader: boolean;
Inherited from
RouteDefinition
.isInternalHeader
method
method: HttpMethod;
Overrides
methods?
optional methods: undefined;
Overrides
middleware?
optional middleware: MixedPipe<IncomingEventType, OutgoingResponseType>[];
Inherited from
name?
optional name: string;
Inherited from
path
path: string;
Overrides
protocol?
optional protocol: string;
Overrides
redirect?
optional redirect:
| string
| Record<string, unknown>
| RouteDefinitionRedirect<IncomingEventType, unknown>;
Inherited from
rules?
optional rules: Record<string, string | RegExp>;
Inherited from
strict?
optional strict: boolean;