3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>http::message::header_type</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="has_content_length.html" title="http::message::has_content_length">
10 <link rel="next" href="is_request.html" title="http::message::is_request">
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="has_content_length.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="is_request.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h5 class="title">
27 <a name="beast.ref.boost__beast__http__message.header_type"></a><a class="link" href="header_type.html" title="http::message::header_type">http::message::header_type</a>
28 </h5></div></div></div>
30 <a class="indexterm" name="idm45873496115712"></a>
31 The base class used to hold the header portion
35 <a name="beast.ref.boost__beast__http__message.header_type.h0"></a>
36 <span class="phrase"><a name="beast.ref.boost__beast__http__message.header_type.synopsis"></a></span><a class="link" href="header_type.html#beast.ref.boost__beast__http__message.header_type.synopsis">Synopsis</a>
38 <pre class="programlisting"><span class="keyword">using</span> <span class="identifier">header_type</span> <span class="special">=</span> <span class="identifier">header</span><span class="special"><</span> <span class="identifier">isRequest</span><span class="special">,</span> <span class="identifier">Fields</span> <span class="special">>;</span>
41 <a name="beast.ref.boost__beast__http__message.header_type.h1"></a>
42 <span class="phrase"><a name="beast.ref.boost__beast__http__message.header_type.types"></a></span><a class="link" href="header_type.html#beast.ref.boost__beast__http__message.header_type.types">Types</a>
44 <div class="informaltable"><table class="table">
65 <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>
70 The type representing the fields.
77 <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>
82 Indicates if the header is a request or response.
89 <a name="beast.ref.boost__beast__http__message.header_type.h2"></a>
90 <span class="phrase"><a name="beast.ref.boost__beast__http__message.header_type.member_functions"></a></span><a class="link" href="header_type.html#beast.ref.boost__beast__http__message.header_type.member_functions">Member
93 <div class="informaltable"><table class="table">
114 <a class="link" href="../boost__beast__http__header/header.html" title="http::header::header"><span class="bold"><strong>header</strong></span></a>
126 <a class="link" href="../boost__beast__http__header/method.html" title="http::header::method"><span class="bold"><strong>method</strong></span></a>
131 Return the request-method verb.
134 Set the request-method.
141 <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>
146 Return the request-method as a string.
153 <a class="link" href="../boost__beast__http__header/operator_eq_.html" title="http::header::operator="><span class="bold"><strong>operator=</strong></span></a>
165 <a class="link" href="../boost__beast__http__header/reason.html" title="http::header::reason"><span class="bold"><strong>reason</strong></span></a>
170 Return the response reason-phrase.
173 Set the response reason-phrase (deprecated)
180 <a class="link" href="../boost__beast__http__header/result.html" title="http::header::result"><span class="bold"><strong>result</strong></span></a>
185 The response status-code result.
188 Set the response status-code.
191 Set the response status-code as an integer.
198 <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>
203 The response status-code expressed as an integer.
210 <a class="link" href="../boost__beast__http__header/target.html" title="http::header::target"><span class="bold"><strong>target</strong></span></a>
215 Returns the request-target string.
218 Set the request-target string.
225 <a class="link" href="../boost__beast__http__header/version.html" title="http::header::version"><span class="bold"><strong>version</strong></span></a>
230 Return the HTTP-version.
233 Set the HTTP-version.
240 This container is derived from the <code class="computeroutput"><span class="identifier">Fields</span></code>
241 template type. To understand all of the members of this class it is necessary
242 to view the declaration for the <code class="computeroutput"><span class="identifier">Fields</span></code>
243 type. When using the default fields container, those declarations are in
244 <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>.
245 Newly constructed header objects have version set to HTTP/1.1. Newly constructed
246 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>
247 includes the start-line and header-fields.
250 <a name="beast.ref.boost__beast__http__message.header_type.h3"></a>
251 <span class="phrase"><a name="beast.ref.boost__beast__http__message.header_type.description"></a></span><a class="link" href="header_type.html#beast.ref.boost__beast__http__message.header_type.description">Description</a>
254 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
255 <td align="left"></td>
256 <td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
258 Distributed under the Boost Software License, Version 1.0. (See accompanying
259 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>)
264 <div class="spirit-nav">
265 <a accesskey="p" href="has_content_length.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="is_request.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>