1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 00:47:45 +00:00

boost::string_ref -> std::string_view

This commit is contained in:
mordred 2018-10-25 15:25:49 +02:00
parent b0b2b89237
commit b5e4c64389

View file

@ -2,7 +2,6 @@
#define CLIENT_HTTP_HPP
#include <asio.hpp>
#include <boost/utility/string_ref.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/functional/hash.hpp>
@ -52,7 +51,7 @@ namespace SimpleWeb {
/// Set before calling request
Config config;
std::shared_ptr<Response> request(const std::string& request_type, const std::string& path="/", boost::string_ref content="",
std::shared_ptr<Response> request(const std::string& request_type, const std::string& path="/", std::string_view content="",
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
auto corrected_path=path;
if(corrected_path=="")