forked from boostorg/beast
@@ -1,3 +1,9 @@
|
|||||||
|
Version 63:
|
||||||
|
|
||||||
|
* Use std::to_string instead of lexical_cast
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 62:
|
Version 62:
|
||||||
|
|
||||||
* Remove libssl-dev from a Travis matrix item
|
* Remove libssl-dev from a Travis matrix item
|
||||||
|
@@ -9,7 +9,6 @@
|
|||||||
#include <beast/http.hpp>
|
#include <beast/http.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <boost/asio/ssl.hpp>
|
#include <boost/asio/ssl.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@@ -62,7 +61,7 @@ int main()
|
|||||||
req.target("/");
|
req.target("/");
|
||||||
req.version = 11;
|
req.version = 11;
|
||||||
req.set(http::field::host, host + ":" +
|
req.set(http::field::host, host + ":" +
|
||||||
boost::lexical_cast<std::string>(sock.remote_endpoint().port()));
|
std::to_string(sock.remote_endpoint().port()));
|
||||||
req.set(http::field::user_agent, "Beast");
|
req.set(http::field::user_agent, "Beast");
|
||||||
req.prepare_payload();
|
req.prepare_payload();
|
||||||
|
|
||||||
|
@@ -10,7 +10,6 @@
|
|||||||
#include <beast/core.hpp>
|
#include <beast/core.hpp>
|
||||||
#include <beast/http.hpp>
|
#include <beast/http.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -53,7 +52,7 @@ int main()
|
|||||||
req.target("/");
|
req.target("/");
|
||||||
req.version = 11;
|
req.version = 11;
|
||||||
req.set(http::field::host, host + ":" +
|
req.set(http::field::host, host + ":" +
|
||||||
boost::lexical_cast<std::string>(sock.remote_endpoint().port()));
|
std::to_string(sock.remote_endpoint().port()));
|
||||||
req.set(http::field::user_agent, "Beast");
|
req.set(http::field::user_agent, "Beast");
|
||||||
req.prepare_payload();
|
req.prepare_payload();
|
||||||
|
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
#include <beast/http.hpp>
|
#include <beast/http.hpp>
|
||||||
#include <beast/version.hpp>
|
#include <beast/version.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@@ -80,8 +79,7 @@ main(int, char const*[])
|
|||||||
req.version = 11;
|
req.version = 11;
|
||||||
req.method(http::verb::get);
|
req.method(http::verb::get);
|
||||||
req.target("/");
|
req.target("/");
|
||||||
req.set(http::field::host, host + std::string(":") +
|
req.set(http::field::host, host + std::string(":") + std::to_string(ep.port()));
|
||||||
boost::lexical_cast<std::string>(ep.port()));
|
|
||||||
req.set(http::field::user_agent, BEAST_VERSION_STRING);
|
req.set(http::field::user_agent, BEAST_VERSION_STRING);
|
||||||
|
|
||||||
// Set the Connection: close field, this way the server will close
|
// Set the Connection: close field, this way the server will close
|
||||||
|
Reference in New Issue
Block a user