/// Pedido HTTP.
class HTTPMessage {
+ /////////////////////////////////////////////////////////////////////
// Constantes.
public:
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:
/// 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;
/// Cabeceras HTTP.
HTTPHeaders headers;
+ /////////////////////////////////////////////////////////////////////
// Métodos.
public: