#ifndef PLAQUI_HTTPREQUEST_H
#define PLAQUI_HTTPREQUEST_H
-#include "httpmessage.h"
+#include "plaqui/server/httperror.h"
+#include "plaqui/server/httpmessage.h"
#include <string>
+#include <istream>
+#include <ostream>
namespace PlaQui {
/**
* Obtiene los datos del pedido HTTP desde un texto.
*/
- friend std::istream& operator>>(std::istream& is, HTTPRequest& req);
+ friend std::istream& operator>>(std::istream& is, HTTPRequest& req)
+ throw(HTTPError, std::ios::failure);
/**
* Convierte el pedido HTTP en texto.