This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
short-link-backend/includes/request_parser.hpp
2024-10-24 10:34:10 +02:00

23 lines
No EOL
347 B
C++

#ifndef REQUEST_PARSER_HPP
#define REQUEST_PARSER_HPP
#include <istream>
#include <map>
#include <string>
using namespace std;
struct HttpRequest {
string method;
string uri;
string version;
map<string, string> headers;
string body;
};
class request_parser {
public:
HttpRequest& parse(istream& data_stream);
};
#endif