X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/1b53a979e1de9034a9755955ea22cd40ed138f23..9075115540d133ca048025e719884121007b9e87:/Server/include/plaqui/server/httpheaders.h?ds=inline diff --git a/Server/include/plaqui/server/httpheaders.h b/Server/include/plaqui/server/httpheaders.h index 8eb42ed..ce703b2 100644 --- a/Server/include/plaqui/server/httpheaders.h +++ b/Server/include/plaqui/server/httpheaders.h @@ -28,8 +28,12 @@ #ifndef PLAQUI_HTTPHEADERS_H #define PLAQUI_HTTPHEADERS_H +#include "plaqui/server/httperror.h" +#include #include #include +#include +#include namespace PlaQui { @@ -38,6 +42,9 @@ namespace Server { /// Cabeceras HTTP. class HTTPHeaders: public std::map { + ///////////////////////////////////////////////////////////////////// + // Métodos. + public: /** @@ -48,14 +55,18 @@ namespace Server { /** * Obtiene los datos de las cabeceras HTTP desde un texto. */ - friend std::istream& operator>>(std::istream& is, HTTPHeaders& h); + friend std::istream& operator>>(std::istream& is, HTTPHeaders& h) + throw(HTTPError, sockerr, ios::failure); /** * Convierte las cabeceras HTTP a texto. */ friend std::ostream& operator<<(std::ostream& os, - const HTTPHeaders& h); + const HTTPHeaders& h) throw(sockerr); + + }; +} }