-#include <msp/core/except.h>
#include <msp/core/refptr.h>
#include <msp/net/resolve.h>
#include <msp/time/units.h>
void Client::start_request(const Request &r)
{
if(request)
- throw InvalidState("Already processing a request");
+ throw client_busy();
string host = r.get_header("Host");
if(host.find(':')==string::npos)
namespace Msp {
namespace Http {
+class client_busy: public std::logic_error
+{
+public:
+ client_busy(): std::logic_error(std::string()) { }
+ virtual ~client_busy() throw() { }
+};
+
class Request;
class Response;