Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 7b149d1613.
PrevUpHomeNext
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.


PrevUpHomeNext