Name

gun_data - Response body

Description

Response body.

This message informs the relevant process that the server sent a all or part of the body for the response to the original request.

A data message is always preceded by a response message.

The response body may be terminated either by a data message with the flag fin set or by a gun_trailers(3) message.

Elements

ConnPid

The pid of the Gun connection process.

StreamRef

Identifier of the stream for the original request.

IsFin

Whether this message terminates the response.

Data

All or part of the response body.

Changelog

  • 1.0: Message introduced.

Examples

Receive a gun_data message in a gen_server

See also