# ngx\_stream\_return\_module

* [示例配置](#example_configuration)
* [指令](#directives)
  * [return](#return)

`ngx_stream_return_module` 模块（1.11.2）允许向客户端发送指定的值，然后关闭连接。

## 示例配置 <a href="#example_configuration" id="example_configuration"></a>

```
server {
    listen 12345;
    return $time_iso8601;
}
```

## 指令 <a href="#directives" id="directives"></a>

### return

|       - | 说明                  |
| ------: | ------------------- |
|  **语法** | **return** `value`; |
|  **默认** | ——                  |
| **上下文** | server              |

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

## 原文档

<http://nginx.org/en/docs/stream/ngx_stream_return_module.html>
