<!-- review: finished -->

<a id="stream-return"></a>

# Return

Allows sending a specified value to the client and then closing the connection.

<a id="configuration-example-68"></a>

## Configuration Example

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

<a id="directives-77"></a>

## Directives

<a id="index-0"></a>

<a id="s-return"></a>

### return

| [Syntax](https://en.angie.software//angie/docs/configuration/configfile.md#configfile)   | `return` value;   |
|------------------------------------------------------------------------------------------|-------------------|
| Default                                                                                  | —                 |
| [Context](https://en.angie.software//angie/docs/configuration/configfile.md#configfile)  | server            |

Specifies a value to send to the client. The value can contain text, variables, and their combination.
