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 master branch, built from commit 064f557086.
PrevUpHomeNext
http::operator<< (1 of 5 overloads)

Serialize an HTTP/1 header to a std::ostream.

Synopsis

Defined in header <boost/beast/http/write.hpp>

template<
    bool isRequest,
    class Fields>
std::ostream&
operator<<(
    std::ostream& os,
    header< isRequest, Fields > const& msg);
Description

The function converts the header to its HTTP/1 serialized representation and stores the result in the output stream.

Parameters

Name

Description

os

The output stream to write to.

msg

The message fields to write.


PrevUpHomeNext