boost::http_proto::message_base

Provides message metadata for requests and responses

Synopsis

Declared in header <boost/http_proto/message_base.hpp>

class message_base
    : public fields_base
    , public message_view_base;

Types

Name

Description

const_iterator

const_iterator

const_reference

const_reference

const_reverse_iterator

const_reverse_iterator

difference_type

A signed integer type

difference_type

A signed integer type

iterator

iterator

reference

A field

reference

A field

reverse_iterator

reverse_iterator

size_type

An unsigned integer type

size_type

An unsigned integer type

subrange

subrange

value_type

A type which can represent a field as a value

value_type

A type which can represent a field as a value

Member Functions

Name

Description

append

Append a header

begin

Return an iterator to the beginning

buffer

Return a string representing the serialized data

capacity_in_bytes

Returns the total number of bytes allocated by the container

chunked

Return true if the message is using a chunked transfer encoding.

clear

Clear the contents, but not the capacity

count

Return the number of matching fields

end

Return an iterator to the end

erase

Erase all matching fields

Erase headers

exists

Return true if a field exists

find

Returns an iterator to the matching element if it exists

find_all

Return a forward range containing values for all matching fields

find_last

Returns an iterator to the matching element if it exists

insert

Insert a header

keep_alive

Return true if semantics indicate connection persistence

max_capacity_in_bytes

Returns the largest permissible capacity in bytes

metadata

Return metadata about the message

payload

Return the type of payload of this message

payload_size

Return the payload size

rbegin

Return a reverse iterator to the beginning

rend

Return a reverse iterator to the end

reserve_bytes

Reserve a minimum capacity

set

Set a header value

set_chunked

Set whether the payload is chunked.

set_content_length

Set the Content-Length to the specified value

set_keep_alive

Set whether the connection should stay open.

set_payload_size

Set the payload size

shrink_to_fit

Remove excess capacity

size

Returns the number of fields in the container

value_or

Return the value of a field

Static Member Functions

Name

Description

max_size

Returns the largest possible serialized message