X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frequest.h;h=ec5030e7e543b6e04c004df30f4ddf8937add09d;hb=c8df43e7794dc82d5604dfa612e464bbc5ca3cdd;hp=6f713abf5b526f6a402c5c11bcede10adeb607d9;hpb=070d56e7b0036ca2e4234eb06dcae83ebfb3df34;p=libs%2Fnet.git diff --git a/source/request.h b/source/request.h index 6f713ab..ec5030e 100644 --- a/source/request.h +++ b/source/request.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_REQUEST_H_ #define MSP_HTTP_REQUEST_H_ @@ -16,15 +9,18 @@ namespace Http { class Request: public Message { +private: + std::string method; + std::string path; + public: Request(const std::string &, const std::string &); + const std::string &get_method() const { return method; } + const std::string &get_path() const { return path; } virtual std::string str() const; static Request parse(const std::string &); static Request from_url(const std::string &); -private: - std::string method; - std::string path; }; } // namespace Http