X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/1b53a979e1de9034a9755955ea22cd40ed138f23..2f5c973fdf3f7fb25b13996b66d566c58066f6a0:/Server/include/plaqui/server/httprequest.h diff --git a/Server/include/plaqui/server/httprequest.h b/Server/include/plaqui/server/httprequest.h index 55748e7..ace04f0 100644 --- a/Server/include/plaqui/server/httprequest.h +++ b/Server/include/plaqui/server/httprequest.h @@ -30,6 +30,8 @@ #include "httpmessage.h" #include +#include +#include namespace PlaQui { @@ -78,9 +80,12 @@ namespace Server { // Atributos. - protected: + protected: // TODO hacer privados con get() y set() ??? + + public: /// Método HTTP. + /// @todo TODO - convertirlo a string? Hace todo más fácil (y más ineficiente :) HTTPMethod method; /// URI. @@ -104,7 +109,7 @@ namespace Server { HTTPRequest(const std::string& uri = "/", const HTTPMethod& method = GET, const std::string& query = "", - const std::string& http = "1.1"); + const std::string& version = "1.1"); /** * Obtiene los datos del pedido HTTP desde un texto.