]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/httpheaders.h
Se termina de poner prolijo Runnable:
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / httpheaders.h
index 1a9c5aaebf67a55f8253dbada1bb26df687b1621..ce703b2ea81b8f109158731b8a284b5dc5c80a8f 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef PLAQUI_HTTPHEADERS_H
 #define PLAQUI_HTTPHEADERS_H
 
 #ifndef PLAQUI_HTTPHEADERS_H
 #define PLAQUI_HTTPHEADERS_H
 
+#include "plaqui/server/httperror.h"
+#include <socket++/sockstream.h>
 #include <map>
 #include <string>
 #include <istream>
 #include <map>
 #include <string>
 #include <istream>
@@ -40,6 +42,9 @@ namespace Server {
        /// Cabeceras HTTP.
        class HTTPHeaders: public std::map<std::string, std::string> {
 
        /// Cabeceras HTTP.
        class HTTPHeaders: public std::map<std::string, std::string> {
 
+               /////////////////////////////////////////////////////////////////////
+               // Métodos.
+
                public:
 
                        /**
                public:
 
                        /**
@@ -50,13 +55,14 @@ namespace Server {
                        /**
                         * Obtiene los datos de las cabeceras HTTP desde un texto.
                         */
                        /**
                         * 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,
 
                        /**
                         * Convierte las cabeceras HTTP a texto.
                         */
                        friend std::ostream& operator<<(std::ostream& os,
-                                       const HTTPHeaders& h);
+                                       const HTTPHeaders& h) throw(sockerr);
 
        };
 
 
        };