X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b92547a5de3a3fb4f14a2bea4a4e776b8da3cb5c..c90e905d76aed75379d220478e97fda0d34ec59b:/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 1a9c5aa..23470f3 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,8 @@ namespace Server { /// Cabeceras HTTP. class HTTPHeaders: public std::map { + // Métodos. + public: /** @@ -50,13 +54,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); };