Stream JavaScript directives

js_filter (stream-js)

Selects a stream data filter.

Formal Syntax & Structure

nginx syntaxnginx
js_filter module.function;

Parameters & Attributes

NameTypeDescription
handlermodule.functionInitialize stream content-phase data filter. Register bounded synchronous callbacks; preserve binary data and protocol framing.

Working Example

Example Snippetnginx
js_filter session.filter;
Nginx Reference