boost::burl::message_head_base::set_keep_alive

Set whether the connection should be kept open.

Synopsis

void
set_keep_alive(bool value);

Description

The Connection field is rewritten: the "close" and "keep‐alive" tokens are removed, other tokens are preserved, and the token required by the HTTP version and value is added.

Exception Safety

Basic guarantee.

Exceptions

Name

Thrown on

std::length_error

The storage cannot accommodate the field.

Parameters

Name

Description

value

Whether the connection should be kept open.

Created with MrDocs