• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>http::make_chunk</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__is_fields.html" title="http::is_fields">
10<link rel="next" href="boost__beast__http__make_chunk_last.html" title="http::make_chunk_last">
11</head>
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>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="boost__beast__http__is_fields.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__make_chunk_last.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h4 class="title">
27<a name="beast.ref.boost__beast__http__make_chunk"></a><a class="link" href="boost__beast__http__make_chunk.html" title="http::make_chunk">http::make_chunk</a>
28</h4></div></div></div>
29<p>
30        <a class="indexterm" name="idm46057507319248"></a>
31      </p>
32<p>
33        Returns a <a class="link" href="boost__beast__http__chunk_body.html" title="http::chunk_body"><code class="computeroutput"><span class="identifier">chunk_body</span></code></a>.
34      </p>
35<h5>
36<a name="beast.ref.boost__beast__http__make_chunk.h0"></a>
37        <span class="phrase"><a name="beast.ref.boost__beast__http__make_chunk.synopsis"></a></span><a class="link" href="boost__beast__http__make_chunk.html#beast.ref.boost__beast__http__make_chunk.synopsis">Synopsis</a>
38      </h5>
39<p>
40        Defined in header <code class="literal">&lt;<a href="../../../../../../boost/beast/http/chunk_encode.hpp" target="_top">boost/beast/http/chunk_encode.hpp</a>&gt;</code>
41      </p>
42<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
43    <span class="keyword">class</span> <a href="../../../../../../doc/html/boost_asio/reference/ConstBufferSequence.html" target="_top"><span class="emphasis"><em>ConstBufferSequence</em></span></a><span class="special">,</span>
44    <span class="keyword">class</span><span class="special">...</span> <span class="identifier">Args</span><span class="special">&gt;</span>
45<span class="keyword">auto</span>
46<span class="identifier">make_chunk</span><span class="special">(</span>
47    <span class="identifier">ConstBufferSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span>
48    <span class="identifier">Args</span><span class="special">&amp;&amp;...</span> <span class="identifier">args</span><span class="special">);</span>
49</pre>
50<h5>
51<a name="beast.ref.boost__beast__http__make_chunk.h1"></a>
52        <span class="phrase"><a name="beast.ref.boost__beast__http__make_chunk.description"></a></span><a class="link" href="boost__beast__http__make_chunk.html#beast.ref.boost__beast__http__make_chunk.description">Description</a>
53      </h5>
54<p>
55        This functions constructs and returns a complete <a class="link" href="boost__beast__http__chunk_body.html" title="http::chunk_body"><code class="computeroutput"><span class="identifier">chunk_body</span></code></a> for a chunk body represented
56        by the specified buffer sequence.
57      </p>
58<h5>
59<a name="beast.ref.boost__beast__http__make_chunk.h2"></a>
60        <span class="phrase"><a name="beast.ref.boost__beast__http__make_chunk.parameters"></a></span><a class="link" href="boost__beast__http__make_chunk.html#beast.ref.boost__beast__http__make_chunk.parameters">Parameters</a>
61      </h5>
62<div class="informaltable"><table class="table">
63<colgroup>
64<col>
65<col>
66</colgroup>
67<thead><tr>
68<th>
69                <p>
70                  Name
71                </p>
72              </th>
73<th>
74                <p>
75                  Description
76                </p>
77              </th>
78</tr></thead>
79<tbody>
80<tr>
81<td>
82                <p>
83                  <code class="computeroutput"><span class="identifier">buffers</span></code>
84                </p>
85              </td>
86<td>
87                <p>
88                  The buffers representing the chunk body.
89                </p>
90              </td>
91</tr>
92<tr>
93<td>
94                <p>
95                  <code class="computeroutput"><span class="identifier">args</span></code>
96                </p>
97              </td>
98<td>
99                <p>
100                  Optional arguments passed to the <a class="link" href="boost__beast__http__chunk_body.html" title="http::chunk_body"><code class="computeroutput"><span class="identifier">chunk_body</span></code></a> constructor.
101                </p>
102              </td>
103</tr>
104</tbody>
105</table></div>
106<h5>
107<a name="beast.ref.boost__beast__http__make_chunk.h3"></a>
108        <span class="phrase"><a name="beast.ref.boost__beast__http__make_chunk.remarks"></a></span><a class="link" href="boost__beast__http__make_chunk.html#beast.ref.boost__beast__http__make_chunk.remarks">Remarks</a>
109      </h5>
110<p>
111        This function is provided as a notational convenience to omit specification
112        of the class template arguments.
113      </p>
114</div>
115<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
116<td align="left"></td>
117<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
118      Falco<p>
119        Distributed under the Boost Software License, Version 1.0. (See accompanying
120        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>)
121      </p>
122</div></td>
123</tr></table>
124<hr>
125<div class="spirit-nav">
126<a accesskey="p" href="boost__beast__http__is_fields.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__make_chunk_last.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
127</div>
128</body>
129</html>
130