| Home | Libraries | People | FAQ | More

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

Set the keep-alive message semantic option.

<h7> Synopsis </h7>

    void
    keep_alive(
        bool value);

<h7> Description </h7>

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.

<h7> Parameters </h7>

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