X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b92547a5de3a3fb4f14a2bea4a4e776b8da3cb5c..6af2f844f44acecd2c3d6fbb431777e1a4ce3e1f:/Server/include/plaqui/server/httpheaders.h?ds=sidebyside diff --git a/Server/include/plaqui/server/httpheaders.h b/Server/include/plaqui/server/httpheaders.h index 1a9c5aa..ce703b2 100644 --- a/Server/include/plaqui/server/httpheaders.h +++ b/Server/include/plaqui/server/httpheaders.h @@ -28,6 +28,8 @@ #ifndef PLAQUI_HTTPHEADERS_H #define PLAQUI_HTTPHEADERS_H +#include "plaqui/server/httperror.h" +#include #include #include #include @@ -40,6 +42,9 @@ namespace Server { /// Cabeceras HTTP. class HTTPHeaders: public std::map { + ///////////////////////////////////////////////////////////////////// + // Métodos. + public: /** @@ -50,13 +55,14 @@ 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); };