Use url parsing

This commit is contained in:
2019-06-15 20:52:40 +02:00
parent 22d5430e57
commit 71a7aa147c
10 changed files with 126 additions and 71 deletions

21
src/http/url.hpp Normal file
View 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);
};
}