2 * ______________________________________
4 * | | \ | |/ |/ | Date: 06/24/2022 |
5 * | | \| |- |- | Author: Levi Hicks |
8 * | |_| \_||_||_| File: Request.hpp |
11 * | Please do not remove this header. |
12 * |______________________________________|
18 #include <netinet/in.h>
22 Request(int sock
, sockaddr_in
* addr
, std::string path
, std::string method
, std::string request
, std::map
<std::string
, std::string
> queries
);
23 std::string
GetRequest();
24 std::string
GetPath();
25 std::string
GetMethod();
26 std::string
GetHeader(std::string header
);
27 std::string
GetQuery(std::string query
);
28 std::string
GetBody();
29 std::string
GetFormParam(std::string param
);
31 struct sockaddr_in
* GetAddress();
34 struct sockaddr_in
* addr
;
35 std::map
<std::string
, std::string
> headers
, queries
, params
;
36 std::string path
, method
, request
, body
;