boost::burl::message_head_base::set_content_length

Set the Content‐Length field.

Synopsis

void
set_content_length(uint64_t n);

Description

Any chunked Transfer‐Encoding is removed first, as if by set_chunked(false).

Exception Safety

Basic guarantee.

Exceptions

Name

Thrown on

std::length_error

The storage cannot accommodate the field.

Parameters

Name

Description

n

The payload size.

Created with MrDocs