X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/6bffb655ac989fe4f115763270f84175bf24e4bb..fb2d20d28eedbd1b0a98c05a03da5643924d04f9:/Server/include/plaqui/server/httpmessage.h diff --git a/Server/include/plaqui/server/httpmessage.h b/Server/include/plaqui/server/httpmessage.h index 2f6f957..37c0287 100644 --- a/Server/include/plaqui/server/httpmessage.h +++ b/Server/include/plaqui/server/httpmessage.h @@ -38,6 +38,7 @@ namespace Server { /// Pedido HTTP. class HTTPMessage { + ///////////////////////////////////////////////////////////////////// // Constantes. public: @@ -46,11 +47,13 @@ namespace Server { static const unsigned OK = 200; static const unsigned BAD_REQUEST = 401; static const unsigned NOT_FOUND = 404; + static const unsigned CONFLICT = 409; static const unsigned LENGTH_REQUIRED = 411; static const unsigned INTERNAL_SERVER_ERROR = 500; static const unsigned NOT_IMPLEMENTED = 501; static const unsigned HTTP_VERSION_NOT_SUPPORTED = 505; + ///////////////////////////////////////////////////////////////////// // Atributos. private: @@ -58,9 +61,7 @@ namespace Server { /// Cuerpo del mensaje. std::string body; - protected: // TODO hacer privados con get() y set() ??? - - public: + public: // TODO hacer privados con get() y set() ??? /// Version HTTP. std::string version; @@ -68,6 +69,7 @@ namespace Server { /// Cabeceras HTTP. HTTPHeaders headers; + ///////////////////////////////////////////////////////////////////// // Métodos. public: