Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _HTTP_HPP_
- #define _HTTP_HPP_
- #include "util.hpp"
- namespace wss {
- class Request {
- private:
- std::string __header;
- std::map<std::string,std::string> __args;
- public:
- Request(std::string request) {
- wss::util::parse_http_request(&__header, &__args, request.c_str(), request.size());
- }
- inline std::string header() {
- return __header;
- }
- inline std::string operator [] (std::string index) {
- return __args[index];
- }
- };
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement