• 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::basic_parser::skip (2 of 2 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="../skip.html" title="http::basic_parser::skip">
9<link rel="prev" href="overload1.html" title="http::basic_parser::skip (1 of 2 overloads)">
10<link rel="next" href="../put.html" title="http::basic_parser::put">
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="overload1.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../skip.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="../put.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__basic_parser.skip.overload2"></a><a class="link" href="overload2.html" title="http::basic_parser::skip (2 of 2 overloads)">http::basic_parser::skip
28          (2 of 2 overloads)</a>
29</h6></div></div></div>
30<p>
31            Set the skip parse option.
32          </p>
33<h7><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.h0"></a>
34            <span class="phrase"><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.synopsis"></a></span><a class="link" href="overload2.html#beast.ref.boost__beast__http__basic_parser.skip.overload2.synopsis">Synopsis</a>
35          </h7><pre class="programlisting"><span class="keyword">void</span>
36<span class="identifier">skip</span><span class="special">(</span>
37    <span class="keyword">bool</span> <span class="identifier">v</span><span class="special">);</span>
38</pre>
39<h7><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.h1"></a>
40            <span class="phrase"><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.description"></a></span><a class="link" href="overload2.html#beast.ref.boost__beast__http__basic_parser.skip.overload2.description">Description</a>
41          </h7><p>
42            This option controls whether or not the parser expects to see an HTTP
43            body, regardless of the presence or absence of certain fields such as
44            Content-Length or a chunked Transfer-Encoding. Depending on the request,
45            some responses do not carry a body. For example, a 200 response to a
46            CONNECT request from a tunneling proxy, or a response to a HEAD request.
47            In these cases, callers may use this function inform the parser that
48            no body is expected. The parser will consider the message complete after
49            the header has been received.
50          </p>
51<h7><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.h2"></a>
52            <span class="phrase"><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.parameters"></a></span><a class="link" href="overload2.html#beast.ref.boost__beast__http__basic_parser.skip.overload2.parameters">Parameters</a>
53          </h7><div class="informaltable"><table class="table">
54<colgroup>
55<col>
56<col>
57</colgroup>
58<thead><tr>
59<th>
60                    <p>
61                      Name
62                    </p>
63                  </th>
64<th>
65                    <p>
66                      Description
67                    </p>
68                  </th>
69</tr></thead>
70<tbody><tr>
71<td>
72                    <p>
73                      <code class="computeroutput"><span class="identifier">v</span></code>
74                    </p>
75                  </td>
76<td>
77                    <p>
78                      <code class="computeroutput"><span class="keyword">true</span></code> to set the
79                      skip body option or <code class="computeroutput"><span class="keyword">false</span></code>
80                      to disable it.
81                    </p>
82                  </td>
83</tr></tbody>
84</table></div>
85<h7><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.h3"></a>
86            <span class="phrase"><a name="beast.ref.boost__beast__http__basic_parser.skip.overload2.remarks"></a></span><a class="link" href="overload2.html#beast.ref.boost__beast__http__basic_parser.skip.overload2.remarks">Remarks</a>
87          </h7><p>
88            This function must called before any bytes are processed.
89          </p>
90</div>
91<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
92<td align="left"></td>
93<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
94      Falco<p>
95        Distributed under the Boost Software License, Version 1.0. (See accompanying
96        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>)
97      </p>
98</div></td>
99</tr></table>
100<hr>
101<div class="spirit-nav">
102<a accesskey="p" href="overload1.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../skip.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="../put.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
103</div>
104</body>
105</html>
106