1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>http::string_body</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_serializer.html" title="http::response_serializer"> 10<link rel="next" href="boost__beast__http__is_body.html" title="http::is_body"> 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="boost__beast__http__response_serializer.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__is_body.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="beast.ref.boost__beast__http__string_body"></a><a class="link" href="boost__beast__http__string_body.html" title="http::string_body">http::string_body</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="idm46057507673424"></a> 31 </p> 32<p> 33 A <span class="emphasis"><em>Body</em></span> using <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></code> 34 </p> 35<h5> 36<a name="beast.ref.boost__beast__http__string_body.h0"></a> 37 <span class="phrase"><a name="beast.ref.boost__beast__http__string_body.synopsis"></a></span><a class="link" href="boost__beast__http__string_body.html#beast.ref.boost__beast__http__string_body.synopsis">Synopsis</a> 38 </h5> 39<p> 40 Defined in header <code class="literal"><<a href="../../../../../../boost/beast/http/string_body.hpp" target="_top">boost/beast/http/string_body.hpp</a>></code> 41 </p> 42<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">string_body</span> <span class="special">=</span> <span class="identifier">basic_string_body</span><span class="special"><</span> <span class="keyword">char</span> <span class="special">>;</span> 43</pre> 44<h5> 45<a name="beast.ref.boost__beast__http__string_body.h1"></a> 46 <span class="phrase"><a name="beast.ref.boost__beast__http__string_body.types"></a></span><a class="link" href="boost__beast__http__string_body.html#beast.ref.boost__beast__http__string_body.types">Types</a> 47 </h5> 48<div class="informaltable"><table class="table"> 49<colgroup> 50<col> 51<col> 52</colgroup> 53<thead><tr> 54<th> 55 <p> 56 Name 57 </p> 58 </th> 59<th> 60 <p> 61 Description 62 </p> 63 </th> 64</tr></thead> 65<tbody> 66<tr> 67<td> 68 <p> 69 <span class="bold"><strong><a class="link" href="boost__beast__http__basic_string_body/reader.html" title="http::basic_string_body::reader">reader</a></strong></span> 70 </p> 71 </td> 72<td> 73 <p> 74 The algorithm for parsing the body. 75 </p> 76 </td> 77</tr> 78<tr> 79<td> 80 <p> 81 <span class="bold"><strong><a class="link" href="boost__beast__http__basic_string_body/value_type.html" title="http::basic_string_body::value_type">value_type</a></strong></span> 82 </p> 83 </td> 84<td> 85 <p> 86 The type of container used for the body. 87 </p> 88 </td> 89</tr> 90<tr> 91<td> 92 <p> 93 <span class="bold"><strong><a class="link" href="boost__beast__http__basic_string_body/writer.html" title="http::basic_string_body::writer">writer</a></strong></span> 94 </p> 95 </td> 96<td> 97 <p> 98 The algorithm for serializing the body. 99 </p> 100 </td> 101</tr> 102</tbody> 103</table></div> 104<h5> 105<a name="beast.ref.boost__beast__http__string_body.h2"></a> 106 <span class="phrase"><a name="beast.ref.boost__beast__http__string_body.member_functions"></a></span><a class="link" href="boost__beast__http__string_body.html#beast.ref.boost__beast__http__string_body.member_functions">Member 107 Functions</a> 108 </h5> 109<div class="informaltable"><table class="table"> 110<colgroup> 111<col> 112<col> 113</colgroup> 114<thead><tr> 115<th> 116 <p> 117 Name 118 </p> 119 </th> 120<th> 121 <p> 122 Description 123 </p> 124 </th> 125</tr></thead> 126<tbody><tr> 127<td> 128 <p> 129 <span class="bold"><strong><a class="link" href="boost__beast__http__basic_string_body/size.html" title="http::basic_string_body::size">size</a></strong></span> 130 </p> 131 </td> 132<td> 133 <p> 134 Returns the payload size of the body. 135 </p> 136 </td> 137</tr></tbody> 138</table></div> 139<p> 140 This body uses <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code> as a memory-based container 141 for holding message payloads. Messages using this body type may be serialized 142 and parsed. 143 </p> 144<h5> 145<a name="beast.ref.boost__beast__http__string_body.h3"></a> 146 <span class="phrase"><a name="beast.ref.boost__beast__http__string_body.description"></a></span><a class="link" href="boost__beast__http__string_body.html#beast.ref.boost__beast__http__string_body.description">Description</a> 147 </h5> 148</div> 149<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 150<td align="left"></td> 151<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie 152 Falco<p> 153 Distributed under the Boost Software License, Version 1.0. (See accompanying 154 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>) 155 </p> 156</div></td> 157</tr></table> 158<hr> 159<div class="spirit-nav"> 160<a accesskey="p" href="boost__beast__http__response_serializer.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__is_body.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 161</div> 162</body> 163</html> 164