Stream JavaScript directives
js_filter (stream-js)
Selects a stream data filter.
Formal Syntax & Structure
nginx syntaxnginx
js_filter module.function;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| handler | module.function | Initialize stream content-phase data filter. Register bounded synchronous callbacks; preserve binary data and protocol framing. |
Working Example
Example Snippetnginx
js_filter session.filter;