模块 ngx_stream_return_module

示例配置
Directives
返回

ngx_stream_return_modulemodule (1.11.2) 允许 将指定值发送到客户端,然后关闭连接。

示例配置

server {
    listen 12345;
    return $time_iso8601;
}

Directives

语法: return value;
默认值:
上下文: server

指定value以发送到客户端。 该值可以包含文本、变量及其组合。