X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fclient.h;h=b27109cd9b9ab60fb744e416a3990eefebfe6a9a;hb=2ced7606eb9090cdddd89e0481c441403d367bb2;hp=2554ac432c7cbed367313f170313fc559afd0956;hpb=a4049d7c4126126ca3abd12b1aca8715e7006d44;p=libs%2Fnet.git diff --git a/source/client.h b/source/client.h index 2554ac4..b27109c 100644 --- a/source/client.h +++ b/source/client.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmsphttp -Copyright © 2008 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #ifndef MSP_HTTP_CLIENT_H_ #define MSP_HTTP_CLIENT_H_ @@ -28,6 +21,7 @@ public: private: Net::StreamSocket *sock; IO::EventDispatcher *event_disp; + std::string user_agent; Request *request; Response *response; std::string in_buf; @@ -39,6 +33,7 @@ public: ~Client(); void use_event_dispatcher(IO::EventDispatcher *); + void set_user_agent(const std::string &); void start_request(const Request &); const Response *get_url(const std::string &); void tick();