Skip to main content

Interface: WebFilterCtor<Context>

@divine/web-service.WebFilterCtor

The static side of a web filter.

Specifies how a filter is constructed and configures for what paths the filter applies to.

Type parameters

NameDescription
ContextThe type of the WebService context.

Constructors

constructor

new WebFilterCtor(context, args)

Constructs a filter instance. Invoked by WebService when a filter's path matches the request path.

Parameters

NameTypeDescription
contextContextThe WebService context.
argsWebArgumentsThe request arguments.

Defined in

web-service/src/resource.ts:35

Properties

path

path: RegExp

A regular expression that is used when checking if this filter should process a given request.

Defined in

web-service/src/resource.ts:26