#ifndef PLAQUI_COMMAND_H
#define PLAQUI_COMMAND_H
+#include "httperror.h"
#include "httprequest.h"
+#include <socket++/sockstream.h>
#include <string>
#include <vector>
#include <istream>
* Obtiene el comando desde un pedido HTTP completo.
*/
friend std::istream& operator>>(std::istream& is,
- Command& command);
+ Command& command) throw(HTTPError, sockerr, ios::failure);
/**
* Convierte el comando a un pedido HTTP completo.
*/
friend std::ostream& operator<<(std::ostream& os,
- const Command& command);
+ const Command& command) throw(sockerr);
};