Beast Logo

PrevUpHomeNext
http::serializer::keep_alive

Return true if Connection: keep-alive semantic is indicated.

Synopsis
bool
keep_alive();
Description

This function returns true if the semantics of the message indicate that the connection should be kept open after the serialized message has been transmitted. The value depends on the HTTP version of the message, the tokens in the Connection header, and the metadata describing the payload body.

Depending on the payload body, the end of the message may be indicated by connection closuire. In order for the recipient (if any) to receive a complete message, the underlying stream or network connection must be closed when this function returns false.

This function may only be called if http::serializer::is_header_done would return true.


PrevUpHomeNext