• 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::message::message (7 of 14 overloads)</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="../message.html" title="http::message::message">
9<link rel="prev" href="overload6.html" title="http::message::message (6 of 14 overloads)">
10<link rel="next" href="overload8.html" title="http::message::message (8 of 14 overloads)">
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="overload6.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../message.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="overload8.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h6 class="title">
27<a name="beast.ref.boost__beast__http__message.message.overload7"></a><a class="link" href="overload7.html" title="http::message::message (7 of 14 overloads)">http::message::message
28          (7 of 14 overloads)</a>
29</h6></div></div></div>
30<p>
31            Constructor.
32          </p>
33<h7><a name="beast.ref.boost__beast__http__message.message.overload7.h0"></a>
34            <span class="phrase"><a name="beast.ref.boost__beast__http__message.message.overload7.synopsis"></a></span><a class="link" href="overload7.html#beast.ref.boost__beast__http__message.message.overload7.synopsis">Synopsis</a>
35          </h7><pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
36    <span class="keyword">class</span> <span class="identifier">BodyArg</span><span class="special">&gt;</span>
37<span class="identifier">message</span><span class="special">(</span>
38    <span class="identifier">verb</span> <span class="identifier">method</span><span class="special">,</span>
39    <span class="identifier">string_view</span> <span class="identifier">target</span><span class="special">,</span>
40    <span class="keyword">unsigned</span> <span class="identifier">version</span><span class="special">,</span>
41    <span class="identifier">BodyArg</span><span class="special">&amp;&amp;</span> <span class="identifier">body_arg</span><span class="special">);</span>
42</pre>
43<h7><a name="beast.ref.boost__beast__http__message.message.overload7.h1"></a>
44            <span class="phrase"><a name="beast.ref.boost__beast__http__message.message.overload7.description"></a></span><a class="link" href="overload7.html#beast.ref.boost__beast__http__message.message.overload7.description">Description</a>
45          </h7><h7><a name="beast.ref.boost__beast__http__message.message.overload7.h2"></a>
46            <span class="phrase"><a name="beast.ref.boost__beast__http__message.message.overload7.parameters"></a></span><a class="link" href="overload7.html#beast.ref.boost__beast__http__message.message.overload7.parameters">Parameters</a>
47          </h7><div class="informaltable"><table class="table">
48<colgroup>
49<col>
50<col>
51</colgroup>
52<thead><tr>
53<th>
54                    <p>
55                      Name
56                    </p>
57                  </th>
58<th>
59                    <p>
60                      Description
61                    </p>
62                  </th>
63</tr></thead>
64<tbody>
65<tr>
66<td>
67                    <p>
68                      <code class="computeroutput"><span class="identifier">method</span></code>
69                    </p>
70                  </td>
71<td>
72                    <p>
73                      The request-method to use.
74                    </p>
75                  </td>
76</tr>
77<tr>
78<td>
79                    <p>
80                      <code class="computeroutput"><span class="identifier">target</span></code>
81                    </p>
82                  </td>
83<td>
84                    <p>
85                      The request-target.
86                    </p>
87                  </td>
88</tr>
89<tr>
90<td>
91                    <p>
92                      <code class="computeroutput"><span class="identifier">version</span></code>
93                    </p>
94                  </td>
95<td>
96                    <p>
97                      The HTTP-version.
98                    </p>
99                  </td>
100</tr>
101<tr>
102<td>
103                    <p>
104                      <code class="computeroutput"><span class="identifier">body_arg</span></code>
105                    </p>
106                  </td>
107<td>
108                    <p>
109                      An argument forwarded to the <code class="computeroutput"><span class="identifier">body</span></code>
110                      constructor.
111                    </p>
112                  </td>
113</tr>
114</tbody>
115</table></div>
116<h7><a name="beast.ref.boost__beast__http__message.message.overload7.h3"></a>
117            <span class="phrase"><a name="beast.ref.boost__beast__http__message.message.overload7.remarks"></a></span><a class="link" href="overload7.html#beast.ref.boost__beast__http__message.message.overload7.remarks">Remarks</a>
118          </h7><p>
119            This function is only available when <code class="computeroutput"><span class="identifier">isRequest</span>
120            <span class="special">==</span> <span class="keyword">true</span></code>.
121          </p>
122</div>
123<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
124<td align="left"></td>
125<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
126      Falco<p>
127        Distributed under the Boost Software License, Version 1.0. (See accompanying
128        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>)
129      </p>
130</div></td>
131</tr></table>
132<hr>
133<div class="spirit-nav">
134<a accesskey="p" href="overload6.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../message.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="overload8.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
135</div>
136</body>
137</html>
138