]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/httpmessage.h
Se mejora el codo (para que el color siga la curva).
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / httpmessage.h
index 730bf0ac861d9a06d09d4a45f6fe6def6dd6a3df..37c0287764c7771ecdb3aadabdb50f1f67e39174 100644 (file)
@@ -38,6 +38,7 @@ namespace Server {
        /// Pedido HTTP.
        class HTTPMessage {
 
+               /////////////////////////////////////////////////////////////////////
                // Constantes.
 
                public:
@@ -45,11 +46,14 @@ namespace Server {
                        /// \todo TODO completar codigos.
                        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:
@@ -57,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;
@@ -67,6 +69,7 @@ namespace Server {
                        /// Cabeceras HTTP.
                        HTTPHeaders headers;
 
+               /////////////////////////////////////////////////////////////////////
                // Métodos.
 
                public: