Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / beast / doc / html / beast / ref / boost__beast__http__message / need_eof.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>http::message::need_eof</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&#160;1.&#160;Boost.Beast">
8 <link rel="up" href="../boost__beast__http__message.html" title="http::message">
9 <link rel="prev" href="method_string/overload2.html" title="http::message::method_string (2 of 2 overloads)">
10 <link rel="next" href="operator_eq_.html" title="http::message::operator=">
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="method_string/overload2.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__http__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="operator_eq_.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h5 class="title">
27 <a name="beast.ref.boost__beast__http__message.need_eof"></a><a class="link" href="need_eof.html" title="http::message::need_eof">http::message::need_eof</a>
28 </h5></div></div></div>
29 <p>
30           <a class="indexterm" name="idm45873495164880"></a>
31 Returns <code class="computeroutput"><span class="keyword">true</span></code>
32           if the message semantics require an end of file.
33         </p>
34 <h6>
35 <a name="beast.ref.boost__beast__http__message.need_eof.h0"></a>
36           <span class="phrase"><a name="beast.ref.boost__beast__http__message.need_eof.synopsis"></a></span><a class="link" href="need_eof.html#beast.ref.boost__beast__http__message.need_eof.synopsis">Synopsis</a>
37         </h6>
38 <pre class="programlisting"><span class="keyword">bool</span>
39 <span class="identifier">need_eof</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
40 </pre>
41 <h6>
42 <a name="beast.ref.boost__beast__http__message.need_eof.h1"></a>
43           <span class="phrase"><a name="beast.ref.boost__beast__http__message.need_eof.description"></a></span><a class="link" href="need_eof.html#beast.ref.boost__beast__http__message.need_eof.description">Description</a>
44         </h6>
45 <p>
46           For HTTP requests, this function returns the logical NOT of a call to
47           <a class="link" href="keep_alive.html" title="http::message::keep_alive"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">message</span><span class="special">::</span><span class="identifier">keep_alive</span></code></a>. For HTTP responses,
48           this function returns the logical NOT of a call to <a class="link" href="keep_alive.html" title="http::message::keep_alive"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">message</span><span class="special">::</span><span class="identifier">keep_alive</span></code></a> if any of the following
49           are true:
50         </p>
51 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
52 <li class="listitem">
53               <a class="link" href="has_content_length.html" title="http::message::has_content_length"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">message</span><span class="special">::</span><span class="identifier">has_content_length</span></code></a> would return
54               <code class="computeroutput"><span class="keyword">true</span></code>
55             </li>
56 <li class="listitem">
57               <a class="link" href="chunked.html" title="http::message::chunked"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">message</span><span class="special">::</span><span class="identifier">chunked</span></code></a> would return <code class="computeroutput"><span class="keyword">true</span></code>
58             </li>
59 <li class="listitem">
60               <a class="link" href="../boost__beast__http__header/result.html" title="http::header::result"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">header</span><span class="special">::</span><span class="identifier">result</span></code></a> returns <a class="link" href="../boost__beast__http__status.html" title="http::status"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">no_content</span></code></a>
61             </li>
62 <li class="listitem">
63               <a class="link" href="../boost__beast__http__header/result.html" title="http::header::result"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">header</span><span class="special">::</span><span class="identifier">result</span></code></a> returns <a class="link" href="../boost__beast__http__status.html" title="http::status"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">not_modified</span></code></a>
64             </li>
65 <li class="listitem">
66               <a class="link" href="../boost__beast__http__header/result.html" title="http::header::result"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">header</span><span class="special">::</span><span class="identifier">result</span></code></a> returns any informational
67               status class (100 to 199)
68             </li>
69 </ul></div>
70 <p>
71           Otherwise, the function returns <code class="computeroutput"><span class="keyword">true</span></code>.
72         </p>
73 <h6>
74 <a name="beast.ref.boost__beast__http__message.need_eof.h2"></a>
75           <span class="phrase"><a name="beast.ref.boost__beast__http__message.need_eof.see_also"></a></span><a class="link" href="need_eof.html#beast.ref.boost__beast__http__message.need_eof.see_also">See Also</a>
76         </h6>
77 <p>
78           <a href="https://tools.ietf.org/html/rfc7230#section-3.3" target="_top">https://tools.ietf.org/html/rfc7230#section-3.3</a>
79         </p>
80 </div>
81 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
82 <td align="left"></td>
83 <td align="right"><div class="copyright-footer">Copyright &#169; 2016-2019 Vinnie
84       Falco<p>
85         Distributed under the Boost Software License, Version 1.0. (See accompanying
86         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>)
87       </p>
88 </div></td>
89 </tr></table>
90 <hr>
91 <div class="spirit-nav">
92 <a accesskey="p" href="method_string/overload2.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__http__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="operator_eq_.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
93 </div>
94 </body>
95 </html>