]> git.tdb.fi Git - libs/net.git/blobdiff - source/client.h
Add Server class
[libs/net.git] / source / client.h
index 2554ac432c7cbed367313f170313fc559afd0956..8c084cec49e45dd655fa895b00573e2fd8bf205b 100644 (file)
@@ -28,6 +28,7 @@ public:
 private:
        Net::StreamSocket *sock;
        IO::EventDispatcher *event_disp;
+       std::string user_agent;
        Request *request;
        Response *response;
        std::string in_buf;
@@ -39,6 +40,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();