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

View File

@@ -1,12 +1,13 @@
#pragma once
#include "../constants/httprequest.hpp"
#include "url.hpp"
namespace Http
{
struct Request
{
HttpRequest::Type requestType;
std::string path;
Url url;
static Request Deserialize(std::vector<char> const & bytes);
};