Return#

The module allows sending a specified value to the client and then closing the connection.

Configuration Example#

server {
    listen 12345;
    return $time_iso8601;
}

Directives#

return#

Syntax

return value;

Default

Context

server

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