diff options
Diffstat (limited to 'ts/ngx_stream_js_module.d.ts')
-rw-r--r-- | ts/ngx_stream_js_module.d.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ts/ngx_stream_js_module.d.ts b/ts/ngx_stream_js_module.d.ts index b3c13033..58c4d908 100644 --- a/ts/ngx_stream_js_module.d.ts +++ b/ts/ngx_stream_js_module.d.ts @@ -211,3 +211,25 @@ interface NginxStreamRequest { */ warn(message: NjsStringOrBuffer): void; } + + +/** + * NginxPeriodicSession object is available as the first argument in the js_periodic handler. + * @since 0.8.1 + */ +interface NginxPeriodicSession { + /** + * nginx variables as Buffers. + * + * @see variables + */ + readonly rawVariables: NginxRawVariables; + /** + * nginx variables as strings. + * + * **Warning:** Bytes invalid in UTF-8 encoding may be converted into the replacement character. + * + * @see rawVariables + */ + readonly variables: NginxVariables; +} |