| Home | Libraries | People | FAQ | More

###### http::message::keep_alive (2 of 2 overloads)

Set the keep-alive message semantic option.

Synopsis

    void
    keep_alive(
        bool value);

Description

This function adjusts the Connection field to indicate whether or not the connection should be kept open after the corresponding response. The result depends on the version set on the message, which must be set to the final value before making this call.

Parameters

Name | Description
--- | ---
`value` | `true` if the connection should persist.