mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 16:57:47 +00:00
boost::string_ref -> std::string_view
This commit is contained in:
parent
b0b2b89237
commit
b5e4c64389
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@
|
||||||
#define CLIENT_HTTP_HPP
|
#define CLIENT_HTTP_HPP
|
||||||
|
|
||||||
#include <asio.hpp>
|
#include <asio.hpp>
|
||||||
#include <boost/utility/string_ref.hpp>
|
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/functional/hash.hpp>
|
||||||
|
|
||||||
|
@ -52,7 +51,7 @@ namespace SimpleWeb {
|
||||||
/// Set before calling request
|
/// Set before calling request
|
||||||
Config config;
|
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>()) {
|
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
|
||||||
auto corrected_path=path;
|
auto corrected_path=path;
|
||||||
if(corrected_path=="")
|
if(corrected_path=="")
|
||||||
|
|
Loading…
Add table
Reference in a new issue