3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>http::response_serializer</title>
5 <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../index.html" title="Chapter 1. Boost.Beast">
8 <link rel="up" href="../ref.html" title="This Page Intentionally Left Blank 2/2">
9 <link rel="prev" href="boost__beast__http__response_parser.html" title="http::response_parser">
10 <link rel="next" href="boost__beast__http__serializer.html" title="http::serializer">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="boost__beast__http__response_parser.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="boost__beast__http__serializer.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="beast.ref.boost__beast__http__response_serializer"></a><a class="link" href="boost__beast__http__response_serializer.html" title="http::response_serializer">http::response_serializer</a>
28 </h4></div></div></div>
30 <a class="indexterm" name="idm45873490998576"></a>
31 A serializer for HTTP/1 responses.
34 <a name="beast.ref.boost__beast__http__response_serializer.h0"></a>
35 <span class="phrase"><a name="beast.ref.boost__beast__http__response_serializer.synopsis"></a></span><a class="link" href="boost__beast__http__response_serializer.html#beast.ref.boost__beast__http__response_serializer.synopsis">Synopsis</a>
38 Defined in header <code class="literal"><<a href="../../../../../../boost/beast/http/serializer.hpp" target="_top">boost/beast/http/serializer.hpp</a>></code>
40 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
41 <span class="keyword">class</span> <a class="link" href="../concepts/Body.html" title="Body"><span class="emphasis"><em>Body</em></span></a><span class="special">,</span>
42 <span class="keyword">class</span> <a class="link" href="../concepts/Fields.html" title="Fields"><span class="emphasis"><em>Fields</em></span></a> <span class="special">=</span> <span class="identifier">fields</span><span class="special">></span>
43 <span class="keyword">using</span> <span class="identifier">response_serializer</span> <span class="special">=</span> <span class="identifier">serializer</span><span class="special"><</span> <span class="keyword">false</span><span class="special">,</span> <span class="identifier">Body</span><span class="special">,</span> <span class="identifier">Fields</span> <span class="special">>;</span>
46 <a name="beast.ref.boost__beast__http__response_serializer.h1"></a>
47 <span class="phrase"><a name="beast.ref.boost__beast__http__response_serializer.types"></a></span><a class="link" href="boost__beast__http__response_serializer.html#beast.ref.boost__beast__http__response_serializer.types">Types</a>
49 <div class="informaltable"><table class="table">
69 <a class="link" href="boost__beast__http__serializer/value_type.html" title="http::serializer::value_type"><span class="bold"><strong>value_type</strong></span></a>
74 The type of message this serializer uses.
80 <a name="beast.ref.boost__beast__http__response_serializer.h2"></a>
81 <span class="phrase"><a name="beast.ref.boost__beast__http__response_serializer.member_functions"></a></span><a class="link" href="boost__beast__http__response_serializer.html#beast.ref.boost__beast__http__response_serializer.member_functions">Member
84 <div class="informaltable"><table class="table">
105 <a class="link" href="boost__beast__http__serializer/consume.html" title="http::serializer::consume"><span class="bold"><strong>consume</strong></span></a>
110 Consume buffer octets in the serialization.
117 <a class="link" href="boost__beast__http__serializer/get.html" title="http::serializer::get"><span class="bold"><strong>get</strong></span></a>
122 Returns the message being serialized.
129 <a class="link" href="boost__beast__http__serializer/is_done.html" title="http::serializer::is_done"><span class="bold"><strong>is_done</strong></span></a>
134 Return true if serialization is complete.
141 <a class="link" href="boost__beast__http__serializer/is_header_done.html" title="http::serializer::is_header_done"><span class="bold"><strong>is_header_done</strong></span></a>
146 Return true if serialization of the header is complete.
153 <a class="link" href="boost__beast__http__serializer/limit.html" title="http::serializer::limit"><span class="bold"><strong>limit</strong></span></a>
158 Returns the serialized buffer size limit.
161 Set the serialized buffer size limit.
168 <a class="link" href="boost__beast__http__serializer/next.html" title="http::serializer::next"><span class="bold"><strong>next</strong></span></a>
173 Returns the next set of buffers in the serialization.
180 <a class="link" href="boost__beast__http__serializer/operator_eq_.html" title="http::serializer::operator="><span class="bold"><strong>operator=</strong></span></a>
192 <a class="link" href="boost__beast__http__serializer/serializer.html" title="http::serializer::serializer"><span class="bold"><strong>serializer</strong></span></a>
204 <a class="link" href="boost__beast__http__serializer/split.html" title="http::serializer::split"><span class="bold"><strong>split</strong></span></a>
209 Returns true if we will pause after writing the complete header.
212 Set whether the header and body are written separately.
219 <a class="link" href="boost__beast__http__serializer/writer_impl.html" title="http::serializer::writer_impl"><span class="bold"><strong>writer_impl</strong></span></a>
224 Provides low-level access to the associated BodyWriter
231 An object of this type is used to serialize a complete HTTP message into
232 a sequence of octets. To use this class, construct an instance with the message
233 to be serialized. The implementation will automatically perform chunk encoding
234 if the contents of the message indicate that chunk encoding is required.
235 Chunked output produced by the serializer never contains chunk extensions
236 or trailers, and the location of chunk boundaries is not specified. If callers
237 require chunk extensions, trailers, or control over the exact contents of
238 each chunk they should use the serializer to write just the message header,
239 and then assume control over serializing the chunked payload by using the
240 chunk buffer sequence types <a class="link" href="boost__beast__http__chunk_body.html" title="http::chunk_body"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">chunk_body</span></code></a>, <a class="link" href="boost__beast__http__chunk_crlf.html" title="http::chunk_crlf"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">chunk_crlf</span></code></a>, <a class="link" href="boost__beast__http__chunk_header.html" title="http::chunk_header"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">chunk_header</span></code></a>, and <a class="link" href="boost__beast__http__chunk_last.html" title="http::chunk_last"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">chunk_last</span></code></a>.
243 <a name="beast.ref.boost__beast__http__response_serializer.h3"></a>
244 <span class="phrase"><a name="beast.ref.boost__beast__http__response_serializer.template_parameters"></a></span><a class="link" href="boost__beast__http__response_serializer.html#beast.ref.boost__beast__http__response_serializer.template_parameters">Template
247 <div class="informaltable"><table class="table">
268 <code class="computeroutput"><span class="identifier">isRequest</span></code>
273 <code class="computeroutput"><span class="keyword">true</span></code> if the message
281 <code class="computeroutput"><span class="identifier">Body</span></code>
286 The body type of the message.
293 <code class="computeroutput"><span class="identifier">Fields</span></code>
298 The type of fields in the message.
305 <a name="beast.ref.boost__beast__http__response_serializer.h4"></a>
306 <span class="phrase"><a name="beast.ref.boost__beast__http__response_serializer.description"></a></span><a class="link" href="boost__beast__http__response_serializer.html#beast.ref.boost__beast__http__response_serializer.description">Description</a>
309 Convenience header <code class="literal"><<a href="../../../../../../boost/beast/http.hpp" target="_top">boost/beast/http.hpp</a>></code>
312 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
313 <td align="left"></td>
314 <td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
316 Distributed under the Boost Software License, Version 1.0. (See accompanying
317 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
322 <div class="spirit-nav">
323 <a accesskey="p" href="boost__beast__http__response_parser.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="boost__beast__http__serializer.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>