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