boost::http_proto::response_view

A reference to an HTTP response header

Synopsis

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

class response_view
    : public message_view_base;

Types

Name

Description

const_iterator

const_reference

const_reverse_iterator

difference_type

A signed integer type

iterator

reference

A field

reverse_iterator

size_type

An unsigned integer type

subrange

value_type

A type which can represent a field as a value

Member Functions

Name

Description

begin

Return an iterator to the beginning

buffer

Return a string representing the serialized data

chunked

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

count

Return the number of matching fields

end

Return an iterator to the end

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

keep_alive

Return true if semantics indicate connection persistence

metadata

Return metadata about the message

operator=

Assignment

payload

Return the type of payload of this message

payload_size

Return the payload size

rbegin

Return a reverse iterator to the beginning

reason

Return the reason string

rend

Return a reverse iterator to the end

response_view [constructor]

Constructor

size

Returns the number of fields in the container

status

Return the status code

status_int

Return the status code integer

swap

Swap this with another instance

value_or

Return the value of a field

version

Return the HTTP-version

Static Member Functions

Name

Description

max_size

Returns the largest possible serialized message

Friends

Name

Description

swap

Swap two instances