identt
include
http
ServerContent.hpp
Go to the documentation of this file.
1
33
#ifndef _IDENTT_HTTP_SERVER_CONTENT_HPP_
34
#define _IDENTT_HTTP_SERVER_CONTENT_HPP_
35
36
#include <sstream>
37
#include <boost/asio.hpp>
38
39
namespace
identt
{
40
namespace
http {
41
42
struct
ServerContent
:
public
std::istream {
43
ServerContent
(boost::asio::streambuf &streambuf): std::istream(&streambuf), streambuf(streambuf) {}
44
size_t
size()
45
{
46
return
streambuf.size();
47
}
48
std::string string()
49
{
50
std::stringstream ss;
51
ss << rdbuf();
52
return
ss.str();
53
}
54
boost::asio::streambuf &streambuf;
55
};
56
57
}
// namespace http
58
}
// namespace identt
59
#endif
/* _IDENTT_HTTP_SERVER_CONTENT_HPP_ */
identt::http::ServerContent
Definition:
ServerContent.hpp:42
identt
Definition:
CryptoBase.hpp:49
Generated by
1.8.12