Use url parsing
This commit is contained in:
21
src/http/url.hpp
Normal file
21
src/http/url.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
namespace Http
|
||||
{
|
||||
class Url
|
||||
{
|
||||
private:
|
||||
std::string path;
|
||||
std::string query;
|
||||
|
||||
public:
|
||||
bool HasPath() const;
|
||||
bool HasQuery() const;
|
||||
|
||||
std::string const & GetPath() const;
|
||||
std::string const & GetQuery() const;
|
||||
|
||||
bool TryParseFromUrlString(std::string urlstring);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user