выкинул зависимость boost::url

This commit is contained in:
2024-10-30 11:05:27 +03:00
parent 5c348ace87
commit 839198820e
6 changed files with 69 additions and 25 deletions

View File

@@ -3,14 +3,26 @@
#include <string>
#include <vector>
#include <map>
#include "header.hpp"
namespace http::server {
class Url {
public:
explicit Url(const std::string& url);
std::string path;
std::map<std::string, std::string> params;
~Url();
};
/// A request received from a client.
struct Request {
std::string method;
std::string uri;
std::string queryUri;
std::unique_ptr<Url> url;
bool is_keep_alive;
int http_version_major;
int http_version_minor;