Revert "Convert code to use boost::beast"

This reverts commit cc9c976b76.
This commit is contained in:
seelabs
2018-02-12 11:16:21 -05:00
parent 060692aad4
commit 9a210cfda5
72 changed files with 1104 additions and 471 deletions

View File

@@ -238,7 +238,7 @@ PeerImp::crawl() const
auto const iter = headers_.find("Crawl");
if (iter == headers_.end())
return false;
return boost::beast::detail::iequals(iter->value(), "public");
return beast::detail::iequals(iter->value(), "public");
}
std::string
@@ -621,7 +621,7 @@ void PeerImp::doAccept()
// TODO Apply headers to connection state.
boost::beast::ostream(write_buffer_) << makeResponse(
beast::ostream(write_buffer_) << makeResponse(
! overlay_.peerFinder().config().peerPrivate,
request_, remote_address_, *sharedValue);
@@ -669,8 +669,8 @@ PeerImp::makeResponse (bool crawl,
uint256 const& sharedValue)
{
http_response_type resp;
resp.result(boost::beast::http::status::switching_protocols);
resp.version(req.version());
resp.result(beast::http::status::switching_protocols);
resp.version = req.version;
resp.insert("Connection", "Upgrade");
resp.insert("Upgrade", "RTXP/1.2");
resp.insert("Connect-As", "Peer");