3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>http::response_header</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__response.html" title="http::response">
10 <link rel="next" href="boost__beast__http__response_parser.html" title="http::response_parser">
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>
22 <div class="spirit-nav">
23 <a accesskey="p" href="boost__beast__http__response.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__response_parser.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="beast.ref.boost__beast__http__response_header"></a><a class="link" href="boost__beast__http__response_header.html" title="http::response_header">http::response_header</a>
28 </h4></div></div></div>
30 <a class="indexterm" name="idm45873491238768"></a>
31 A typical HTTP response header.
34 <a name="beast.ref.boost__beast__http__response_header.h0"></a>
35 <span class="phrase"><a name="beast.ref.boost__beast__http__response_header.synopsis"></a></span><a class="link" href="boost__beast__http__response_header.html#beast.ref.boost__beast__http__response_header.synopsis">Synopsis</a>
38 Defined in header <code class="literal"><<a href="../../../../../../boost/beast/http/message.hpp" target="_top">boost/beast/http/message.hpp</a>></code>
40 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
41 <span class="keyword">class</span> <a class="link" href="../concepts/Fields.html" title="Fields"><span class="emphasis"><em>Fields</em></span></a> <span class="special">=</span> <span class="identifier">fields</span><span class="special">></span>
42 <span class="keyword">using</span> <span class="identifier">response_header</span> <span class="special">=</span> <span class="identifier">header</span><span class="special"><</span> <span class="keyword">false</span><span class="special">,</span> <span class="identifier">Fields</span> <span class="special">>;</span>
45 <a name="beast.ref.boost__beast__http__response_header.h1"></a>
46 <span class="phrase"><a name="beast.ref.boost__beast__http__response_header.types"></a></span><a class="link" href="boost__beast__http__response_header.html#beast.ref.boost__beast__http__response_header.types">Types</a>
48 <div class="informaltable"><table class="table">
69 <a class="link" href="boost__beast__http__header/fields_type.html" title="http::header::fields_type"><span class="bold"><strong>fields_type</strong></span></a>
74 The type representing the fields.
81 <a class="link" href="boost__beast__http__header/is_request.html" title="http::header::is_request"><span class="bold"><strong>is_request</strong></span></a>
86 Indicates if the header is a request or response.
93 <a name="beast.ref.boost__beast__http__response_header.h2"></a>
94 <span class="phrase"><a name="beast.ref.boost__beast__http__response_header.member_functions"></a></span><a class="link" href="boost__beast__http__response_header.html#beast.ref.boost__beast__http__response_header.member_functions">Member
97 <div class="informaltable"><table class="table">
118 <a class="link" href="boost__beast__http__header/header.html" title="http::header::header"><span class="bold"><strong>header</strong></span></a>
130 <a class="link" href="boost__beast__http__header/method.html" title="http::header::method"><span class="bold"><strong>method</strong></span></a>
135 Return the request-method verb.
138 Set the request-method.
145 <a class="link" href="boost__beast__http__header/method_string.html" title="http::header::method_string"><span class="bold"><strong>method_string</strong></span></a>
150 Return the request-method as a string.
157 <a class="link" href="boost__beast__http__header/operator_eq_.html" title="http::header::operator="><span class="bold"><strong>operator=</strong></span></a>
169 <a class="link" href="boost__beast__http__header/reason.html" title="http::header::reason"><span class="bold"><strong>reason</strong></span></a>
174 Return the response reason-phrase.
177 Set the response reason-phrase (deprecated)
184 <a class="link" href="boost__beast__http__header/result.html" title="http::header::result"><span class="bold"><strong>result</strong></span></a>
189 The response status-code result.
192 Set the response status-code.
195 Set the response status-code as an integer.
202 <a class="link" href="boost__beast__http__header/result_int.html" title="http::header::result_int"><span class="bold"><strong>result_int</strong></span></a>
207 The response status-code expressed as an integer.
214 <a class="link" href="boost__beast__http__header/target.html" title="http::header::target"><span class="bold"><strong>target</strong></span></a>
219 Returns the request-target string.
222 Set the request-target string.
229 <a class="link" href="boost__beast__http__header/version.html" title="http::header::version"><span class="bold"><strong>version</strong></span></a>
234 Return the HTTP-version.
237 Set the HTTP-version.
244 This container is derived from the <code class="computeroutput"><span class="identifier">Fields</span></code>
245 template type. To understand all of the members of this class it is necessary
246 to view the declaration for the <code class="computeroutput"><span class="identifier">Fields</span></code>
247 type. When using the default fields container, those declarations are in
248 <a class="link" href="boost__beast__http__fields.html" title="http::fields"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">fields</span></code></a>.
249 Newly constructed header objects have version set to HTTP/1.1. Newly constructed
250 response objects also have result code set to <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">ok</span></code></a>. A <code class="computeroutput"><span class="identifier">header</span></code>
251 includes the start-line and header-fields.
254 <a name="beast.ref.boost__beast__http__response_header.h3"></a>
255 <span class="phrase"><a name="beast.ref.boost__beast__http__response_header.description"></a></span><a class="link" href="boost__beast__http__response_header.html#beast.ref.boost__beast__http__response_header.description">Description</a>
258 Convenience header <code class="literal"><<a href="../../../../../../boost/beast/http.hpp" target="_top">boost/beast/http.hpp</a>></code>
261 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
262 <td align="left"></td>
263 <td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
265 Distributed under the Boost Software License, Version 1.0. (See accompanying
266 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>)
271 <div class="spirit-nav">
272 <a accesskey="p" href="boost__beast__http__response.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__response_parser.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>