#ifndef PARSING_MESSAGE_HTTP_HPP # define PARSING_MESSAGE_HTTP_HPP # include # include # include # include # include "utils.hpp" std::map parse_http_headers ( std::string headers, std::map fields ) std::string parse_http_body(std::string message); // http message structure : // // start-line // request-line // method SP target SP version // response-line // version SP status SP reason // header-fields // name ":" SP value // CRLF // body #endif