X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f27c218d18ebf7198e07249aca1eed625da914fd..e860608dbbbbaa43d0f241ab7a43da7c4608e192:/Server/include/plaqui/server/httpheaders.h diff --git a/Server/include/plaqui/server/httpheaders.h b/Server/include/plaqui/server/httpheaders.h index 86a2dd1..ce703b2 100644 --- a/Server/include/plaqui/server/httpheaders.h +++ b/Server/include/plaqui/server/httpheaders.h @@ -29,6 +29,7 @@ #define PLAQUI_HTTPHEADERS_H #include "plaqui/server/httperror.h" +#include #include #include #include @@ -41,6 +42,7 @@ namespace Server { /// Cabeceras HTTP. class HTTPHeaders: public std::map { + ///////////////////////////////////////////////////////////////////// // Métodos. public: @@ -54,13 +56,13 @@ namespace Server { * Obtiene los datos de las cabeceras HTTP desde un texto. */ friend std::istream& operator>>(std::istream& is, HTTPHeaders& h) - throw(HTTPError); + 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); };