2016-11-20 07:32:41 -05:00
|
|
|
//
|
|
|
|
|
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
|
|
|
//
|
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
// Test that header file is self-contained.
|
2017-06-03 08:40:53 -07:00
|
|
|
#include <beast/http/parser.hpp>
|
2016-11-20 07:32:41 -05:00
|
|
|
|
|
|
|
|
#include "test_parser.hpp"
|
|
|
|
|
|
|
|
|
|
#include <beast/unit_test/suite.hpp>
|
|
|
|
|
#include <beast/test/string_istream.hpp>
|
|
|
|
|
#include <beast/test/string_ostream.hpp>
|
|
|
|
|
#include <beast/test/yield_to.hpp>
|
2017-05-31 08:01:55 -07:00
|
|
|
#include <beast/core/consuming_buffers.hpp>
|
2017-05-04 16:00:20 -07:00
|
|
|
#include <beast/core/flat_buffer.hpp>
|
2017-05-04 15:40:07 -07:00
|
|
|
#include <beast/core/multi_buffer.hpp>
|
2017-05-31 08:01:55 -07:00
|
|
|
#include <beast/core/ostream.hpp>
|
2016-11-20 07:32:41 -05:00
|
|
|
#include <beast/http/read.hpp>
|
|
|
|
|
#include <beast/http/string_body.hpp>
|
|
|
|
|
#include <boost/system/system_error.hpp>
|
|
|
|
|
|
|
|
|
|
namespace beast {
|
|
|
|
|
namespace http {
|
|
|
|
|
|
2017-06-03 08:40:53 -07:00
|
|
|
class header_parser_test
|
|
|
|
|
: public beast::unit_test::suite
|
|
|
|
|
, public test::enable_yield_to
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static
|
|
|
|
|
boost::asio::const_buffers_1
|
|
|
|
|
buf(string_view s)
|
|
|
|
|
{
|
|
|
|
|
return {s.data(), s.size()};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
testParse()
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
test::string_istream is{ios_,
|
|
|
|
|
"GET / HTTP/1.1\r\n"
|
|
|
|
|
"User-Agent: test\r\n"
|
|
|
|
|
"\r\n"
|
|
|
|
|
};
|
|
|
|
|
flat_buffer db{1024};
|
|
|
|
|
header_parser<true, fields> p;
|
|
|
|
|
read_some(is, db, p);
|
|
|
|
|
BEAST_EXPECT(p.is_header_done());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
test::string_istream is{ios_,
|
|
|
|
|
"POST / HTTP/1.1\r\n"
|
|
|
|
|
"User-Agent: test\r\n"
|
|
|
|
|
"Content-Length: 1\r\n"
|
|
|
|
|
"\r\n"
|
|
|
|
|
"*"
|
|
|
|
|
};
|
|
|
|
|
flat_buffer db{1024};
|
|
|
|
|
header_parser<true, fields> p;
|
|
|
|
|
read_some(is, db, p);
|
|
|
|
|
BEAST_EXPECT(p.is_header_done());
|
|
|
|
|
BEAST_EXPECT(! p.is_done());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
run() override
|
|
|
|
|
{
|
|
|
|
|
testParse();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BEAST_DEFINE_TESTSUITE(header_parser,http,beast);
|
|
|
|
|
|
|
|
|
|
class parser_test
|
2016-11-20 07:32:41 -05:00
|
|
|
: public beast::unit_test::suite
|
|
|
|
|
, public beast::test::enable_yield_to
|
|
|
|
|
{
|
|
|
|
|
public:
|
2017-05-31 08:01:55 -07:00
|
|
|
template<bool isRequest>
|
|
|
|
|
using parser_type =
|
2017-06-03 08:56:21 -07:00
|
|
|
parser<isRequest, string_body, fields>;
|
2017-05-31 08:01:55 -07:00
|
|
|
|
|
|
|
|
static
|
|
|
|
|
boost::asio::const_buffers_1
|
|
|
|
|
buf(string_view s)
|
|
|
|
|
{
|
|
|
|
|
return {s.data(), s.size()};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<class ConstBufferSequence,
|
|
|
|
|
bool isRequest, class Derived>
|
|
|
|
|
static
|
2016-11-20 07:32:41 -05:00
|
|
|
void
|
2017-05-31 08:01:55 -07:00
|
|
|
put(ConstBufferSequence const& buffers,
|
|
|
|
|
basic_parser<isRequest, Derived>& p,
|
|
|
|
|
error_code& ec)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
using boost::asio::buffer_size;
|
|
|
|
|
consuming_buffers<ConstBufferSequence> cb{buffers};
|
|
|
|
|
for(;;)
|
|
|
|
|
{
|
|
|
|
|
auto const used = p.put(cb, ec);
|
|
|
|
|
cb.consume(used);
|
|
|
|
|
if(ec)
|
|
|
|
|
return;
|
|
|
|
|
if(p.need_eof() &&
|
|
|
|
|
buffer_size(cb) == 0)
|
|
|
|
|
{
|
|
|
|
|
p.put_eof(ec);
|
|
|
|
|
if(ec)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(p.is_done())
|
|
|
|
|
break;
|
|
|
|
|
}
|
2016-11-20 07:32:41 -05:00
|
|
|
}
|
|
|
|
|
|
2017-05-31 08:01:55 -07:00
|
|
|
template<bool isRequest, class F>
|
2016-11-20 07:32:41 -05:00
|
|
|
void
|
2017-05-31 08:01:55 -07:00
|
|
|
doMatrix(string_view s0, F const& f)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
using boost::asio::buffer;
|
|
|
|
|
// parse a single buffer
|
|
|
|
|
{
|
|
|
|
|
auto s = s0;
|
|
|
|
|
error_code ec;
|
|
|
|
|
parser_type<isRequest> p;
|
|
|
|
|
put(buffer(s.data(), s.size()), p, ec);
|
|
|
|
|
if(! BEAST_EXPECTS(! ec, ec.message()))
|
|
|
|
|
return;
|
|
|
|
|
f(p);
|
|
|
|
|
}
|
|
|
|
|
// parse two buffers
|
|
|
|
|
for(auto n = s0.size() - 1; n >= 1; --n)
|
|
|
|
|
{
|
|
|
|
|
auto s = s0;
|
|
|
|
|
error_code ec;
|
|
|
|
|
parser_type<isRequest> p;
|
|
|
|
|
p.eager(true);
|
|
|
|
|
auto used =
|
|
|
|
|
p.put(buffer(s.data(), n), ec);
|
|
|
|
|
s.remove_prefix(used);
|
|
|
|
|
if(ec == error::need_more)
|
|
|
|
|
ec = {};
|
|
|
|
|
if(! BEAST_EXPECTS(! ec, ec.message()))
|
|
|
|
|
continue;
|
|
|
|
|
BEAST_EXPECT(! p.is_done());
|
|
|
|
|
used = p.put(
|
|
|
|
|
buffer(s.data(), s.size()), ec);
|
|
|
|
|
s.remove_prefix(used);
|
|
|
|
|
if(! BEAST_EXPECTS(! ec, ec.message()))
|
|
|
|
|
continue;
|
|
|
|
|
BEAST_EXPECT(s.empty());
|
|
|
|
|
if(p.need_eof())
|
|
|
|
|
{
|
|
|
|
|
p.put_eof(ec);
|
|
|
|
|
if(! BEAST_EXPECTS(! ec, ec.message()))
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if(BEAST_EXPECT(p.is_done()))
|
|
|
|
|
f(p);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
testParse()
|
|
|
|
|
{
|
|
|
|
|
doMatrix<false>(
|
2016-11-20 07:32:41 -05:00
|
|
|
"HTTP/1.0 200 OK\r\n"
|
|
|
|
|
"Server: test\r\n"
|
|
|
|
|
"\r\n"
|
2017-05-31 08:01:55 -07:00
|
|
|
"Hello, world!",
|
|
|
|
|
[&](parser_type<false> const& p)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
auto const& m = p.get();
|
|
|
|
|
BEAST_EXPECT(! p.is_chunked());
|
|
|
|
|
BEAST_EXPECT(p.need_eof());
|
|
|
|
|
BEAST_EXPECT(p.content_length() == boost::none);
|
|
|
|
|
BEAST_EXPECT(m.version == 10);
|
|
|
|
|
BEAST_EXPECT(m.status == 200);
|
|
|
|
|
BEAST_EXPECT(m.reason() == "OK");
|
|
|
|
|
BEAST_EXPECT(m.fields["Server"] == "test");
|
|
|
|
|
BEAST_EXPECT(m.body == "Hello, world!");
|
2016-11-20 07:32:41 -05:00
|
|
|
}
|
|
|
|
|
);
|
2017-05-31 08:01:55 -07:00
|
|
|
doMatrix<false>(
|
|
|
|
|
"HTTP/1.1 200 OK\r\n"
|
2016-11-20 07:32:41 -05:00
|
|
|
"Server: test\r\n"
|
2017-05-31 08:01:55 -07:00
|
|
|
"Expect: Expires, MD5-Fingerprint\r\n"
|
2016-11-20 07:32:41 -05:00
|
|
|
"Transfer-Encoding: chunked\r\n"
|
|
|
|
|
"\r\n"
|
|
|
|
|
"5\r\n"
|
|
|
|
|
"*****\r\n"
|
|
|
|
|
"2;a;b=1;c=\"2\"\r\n"
|
|
|
|
|
"--\r\n"
|
|
|
|
|
"0;d;e=3;f=\"4\"\r\n"
|
|
|
|
|
"Expires: never\r\n"
|
|
|
|
|
"MD5-Fingerprint: -\r\n"
|
|
|
|
|
"\r\n",
|
2017-05-31 08:01:55 -07:00
|
|
|
[&](parser_type<false> const& p)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
auto const& m = p.get();
|
|
|
|
|
BEAST_EXPECT(! p.need_eof());
|
|
|
|
|
BEAST_EXPECT(p.is_chunked());
|
|
|
|
|
BEAST_EXPECT(p.content_length() == boost::none);
|
|
|
|
|
BEAST_EXPECT(m.version == 11);
|
|
|
|
|
BEAST_EXPECT(m.status == 200);
|
|
|
|
|
BEAST_EXPECT(m.reason() == "OK");
|
|
|
|
|
BEAST_EXPECT(m.fields["Server"] == "test");
|
|
|
|
|
BEAST_EXPECT(m.fields["Transfer-Encoding"] == "chunked");
|
|
|
|
|
BEAST_EXPECT(m.fields["Expires"] == "never");
|
|
|
|
|
BEAST_EXPECT(m.fields["MD5-Fingerprint"] == "-");
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECT(m.body == "*****--");
|
|
|
|
|
}
|
|
|
|
|
);
|
2017-05-31 08:01:55 -07:00
|
|
|
doMatrix<false>(
|
2016-11-20 07:32:41 -05:00
|
|
|
"HTTP/1.0 200 OK\r\n"
|
|
|
|
|
"Server: test\r\n"
|
|
|
|
|
"Content-Length: 5\r\n"
|
|
|
|
|
"\r\n"
|
|
|
|
|
"*****",
|
2017-05-31 08:01:55 -07:00
|
|
|
[&](parser_type<false> const& p)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
auto const& m = p.get();
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECT(m.body == "*****");
|
|
|
|
|
}
|
|
|
|
|
);
|
2017-05-31 08:01:55 -07:00
|
|
|
doMatrix<true>(
|
2016-11-20 07:32:41 -05:00
|
|
|
"GET / HTTP/1.1\r\n"
|
|
|
|
|
"User-Agent: test\r\n"
|
|
|
|
|
"\r\n",
|
2017-05-31 08:01:55 -07:00
|
|
|
[&](parser_type<true> const& p)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
auto const& m = p.get();
|
2017-06-04 10:03:36 -07:00
|
|
|
BEAST_EXPECT(m.method() == verb::get);
|
2017-05-31 08:01:55 -07:00
|
|
|
BEAST_EXPECT(m.target() == "/");
|
|
|
|
|
BEAST_EXPECT(m.version == 11);
|
|
|
|
|
BEAST_EXPECT(! p.need_eof());
|
|
|
|
|
BEAST_EXPECT(! p.is_chunked());
|
|
|
|
|
BEAST_EXPECT(p.content_length() == boost::none);
|
2016-11-20 07:32:41 -05:00
|
|
|
}
|
|
|
|
|
);
|
2017-05-31 08:01:55 -07:00
|
|
|
doMatrix<true>(
|
2016-11-20 07:32:41 -05:00
|
|
|
"GET / HTTP/1.1\r\n"
|
|
|
|
|
"User-Agent: test\r\n"
|
|
|
|
|
"X: \t x \t \r\n"
|
|
|
|
|
"\r\n",
|
2017-05-31 08:01:55 -07:00
|
|
|
[&](parser_type<true> const& p)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
2017-05-31 08:01:55 -07:00
|
|
|
auto const& m = p.get();
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECT(m.fields["X"] == "x");
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2017-05-31 08:01:55 -07:00
|
|
|
// test eager(true)
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
|
|
|
|
error_code ec;
|
2017-05-31 08:01:55 -07:00
|
|
|
parser_type<true> p;
|
|
|
|
|
p.eager(true);
|
|
|
|
|
p.put(buf(
|
2016-11-20 07:32:41 -05:00
|
|
|
"GET / HTTP/1.1\r\n"
|
|
|
|
|
"User-Agent: test\r\n"
|
|
|
|
|
"Content-Length: 1\r\n"
|
|
|
|
|
"\r\n"
|
2017-05-31 08:01:55 -07:00
|
|
|
"*")
|
|
|
|
|
, ec);
|
2016-11-20 07:32:41 -05:00
|
|
|
auto const& m = p.get();
|
2017-05-31 08:01:55 -07:00
|
|
|
BEAST_EXPECT(! ec);
|
|
|
|
|
BEAST_EXPECT(p.is_done());
|
|
|
|
|
BEAST_EXPECT(p.is_header_done());
|
|
|
|
|
BEAST_EXPECT(! p.need_eof());
|
2017-06-04 10:03:36 -07:00
|
|
|
BEAST_EXPECT(m.method() == verb::get);
|
2017-05-02 15:49:22 -07:00
|
|
|
BEAST_EXPECT(m.target() == "/");
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECT(m.version == 11);
|
|
|
|
|
BEAST_EXPECT(m.fields["User-Agent"] == "test");
|
|
|
|
|
BEAST_EXPECT(m.body == "*");
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
// test partial parsing of final chunk
|
|
|
|
|
// parse through the chunk body
|
2017-05-31 08:01:55 -07:00
|
|
|
error_code ec;
|
|
|
|
|
flat_buffer b;
|
|
|
|
|
parser_type<true> p;
|
|
|
|
|
p.eager(true);
|
|
|
|
|
ostream(b) <<
|
2016-11-20 07:32:41 -05:00
|
|
|
"PUT / HTTP/1.1\r\n"
|
|
|
|
|
"Transfer-Encoding: chunked\r\n"
|
|
|
|
|
"\r\n"
|
|
|
|
|
"1\r\n"
|
|
|
|
|
"*";
|
2017-05-31 08:01:55 -07:00
|
|
|
auto used = p.put(b.data(), ec);
|
|
|
|
|
b.consume(used);
|
|
|
|
|
BEAST_EXPECT(! ec);
|
|
|
|
|
BEAST_EXPECT(! p.is_done());
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECT(p.get().body == "*");
|
2017-05-31 08:01:55 -07:00
|
|
|
ostream(b) <<
|
|
|
|
|
"\r\n"
|
|
|
|
|
"0;d;e=3;f=\"4\"\r\n"
|
2016-11-20 07:32:41 -05:00
|
|
|
"Expires: never\r\n"
|
|
|
|
|
"MD5-Fingerprint: -\r\n";
|
|
|
|
|
// incomplete parse, missing the final crlf
|
2017-05-31 08:01:55 -07:00
|
|
|
used = p.put(b.data(), ec);
|
|
|
|
|
b.consume(used);
|
|
|
|
|
BEAST_EXPECT(ec == error::need_more);
|
|
|
|
|
ec = {};
|
|
|
|
|
BEAST_EXPECT(! p.is_done());
|
|
|
|
|
ostream(b) <<
|
|
|
|
|
"\r\n"; // final crlf to end message
|
|
|
|
|
used = p.put(b.data(), ec);
|
|
|
|
|
b.consume(used);
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECTS(! ec, ec.message());
|
2017-05-31 08:01:55 -07:00
|
|
|
BEAST_EXPECT(p.is_done());
|
2016-11-20 07:32:41 -05:00
|
|
|
}
|
2017-05-31 08:01:55 -07:00
|
|
|
// skip body
|
2016-11-20 07:32:41 -05:00
|
|
|
{
|
|
|
|
|
error_code ec;
|
2017-06-03 08:56:21 -07:00
|
|
|
response_parser<string_body> p;
|
2017-05-31 08:01:55 -07:00
|
|
|
p.skip(true);
|
|
|
|
|
p.put(buf(
|
2016-11-20 07:32:41 -05:00
|
|
|
"HTTP/1.1 200 OK\r\n"
|
2017-05-31 08:01:55 -07:00
|
|
|
"Content-Length: 5\r\n"
|
2016-11-20 07:32:41 -05:00
|
|
|
"\r\n"
|
2017-05-31 08:01:55 -07:00
|
|
|
"*****")
|
|
|
|
|
, ec);
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECTS(! ec, ec.message());
|
2017-05-31 08:01:55 -07:00
|
|
|
BEAST_EXPECT(p.is_done());
|
|
|
|
|
BEAST_EXPECT(p.is_header_done());
|
|
|
|
|
BEAST_EXPECT(p.content_length() &&
|
|
|
|
|
*p.content_length() == 5);
|
2016-11-20 07:32:41 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
testExpect100Continue()
|
|
|
|
|
{
|
|
|
|
|
test::string_istream ss{ios_,
|
|
|
|
|
"POST / HTTP/1.1\r\n"
|
|
|
|
|
"Expect: 100-continue\r\n"
|
|
|
|
|
"Content-Length: 5\r\n"
|
|
|
|
|
"\r\n"
|
|
|
|
|
"*****"};
|
2017-05-04 15:40:07 -07:00
|
|
|
multi_buffer b;
|
2016-11-20 07:32:41 -05:00
|
|
|
error_code ec;
|
|
|
|
|
header_parser<true, fields> p0;
|
|
|
|
|
auto const bytes_used =
|
2017-05-04 15:40:07 -07:00
|
|
|
read_some(ss, b, p0, ec);
|
|
|
|
|
b.consume(bytes_used);
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECTS(! ec, ec.message());
|
2017-05-31 08:01:55 -07:00
|
|
|
BEAST_EXPECT(p0.is_header_done());
|
|
|
|
|
BEAST_EXPECT(! p0.is_done());
|
2017-06-03 08:56:21 -07:00
|
|
|
request_parser<string_body> p1{std::move(p0)};
|
2017-05-04 15:40:07 -07:00
|
|
|
read(ss, b, p1, ec);
|
2016-11-20 07:32:41 -05:00
|
|
|
BEAST_EXPECTS(! ec, ec.message());
|
|
|
|
|
BEAST_EXPECT(p1.get().body == "*****");
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-31 08:01:55 -07:00
|
|
|
//--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
template<class DynamicBuffer>
|
|
|
|
|
void
|
|
|
|
|
testNeedMore()
|
|
|
|
|
{
|
|
|
|
|
error_code ec;
|
|
|
|
|
std::size_t used;
|
|
|
|
|
{
|
|
|
|
|
DynamicBuffer b;
|
|
|
|
|
parser_type<true> p;
|
|
|
|
|
ostream(b) <<
|
|
|
|
|
"GET / HTTP/1.1\r\n";
|
|
|
|
|
used = p.put(b.data(), ec);
|
|
|
|
|
BEAST_EXPECTS(ec == error::need_more, ec.message());
|
|
|
|
|
b.consume(used);
|
|
|
|
|
ec = {};
|
|
|
|
|
ostream(b) <<
|
|
|
|
|
"User-Agent: test\r\n"
|
|
|
|
|
"\r\n";
|
|
|
|
|
used = p.put(b.data(), ec);
|
|
|
|
|
BEAST_EXPECTS(! ec, ec.message());
|
|
|
|
|
b.consume(used);
|
|
|
|
|
BEAST_EXPECT(p.is_done());
|
|
|
|
|
BEAST_EXPECT(p.is_header_done());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
testGotSome()
|
|
|
|
|
{
|
|
|
|
|
error_code ec;
|
|
|
|
|
parser_type<true> p;
|
|
|
|
|
auto used = p.put(buf(""), ec);
|
|
|
|
|
BEAST_EXPECT(ec == error::need_more);
|
|
|
|
|
BEAST_EXPECT(! p.got_some());
|
|
|
|
|
BEAST_EXPECT(used == 0);
|
|
|
|
|
ec = {};
|
|
|
|
|
used = p.put(buf("G"), ec);
|
|
|
|
|
BEAST_EXPECT(ec == error::need_more);
|
|
|
|
|
BEAST_EXPECT(p.got_some());
|
|
|
|
|
BEAST_EXPECT(used == 0);
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-20 07:32:41 -05:00
|
|
|
void
|
|
|
|
|
run() override
|
|
|
|
|
{
|
|
|
|
|
testParse();
|
2017-05-31 08:01:55 -07:00
|
|
|
testNeedMore<flat_buffer>();
|
|
|
|
|
testNeedMore<multi_buffer>();
|
|
|
|
|
testGotSome();
|
2016-11-20 07:32:41 -05:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2017-06-03 08:40:53 -07:00
|
|
|
BEAST_DEFINE_TESTSUITE(parser,http,beast);
|
2016-11-20 07:32:41 -05:00
|
|
|
|
|
|
|
|
} // http
|
|
|
|
|
} // beast
|
|
|
|
|
|