]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/request.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / http / request.h
index ec5030e7e543b6e04c004df30f4ddf8937add09d..11af9936c662d0e4af688b15cc3141bf0fa6e095 100644 (file)
@@ -2,12 +2,13 @@
 #define MSP_HTTP_REQUEST_H_
 
 #include <string>
+#include <msp/net/mspnet_api.h>
 #include "message.h"
 
 namespace Msp {
 namespace Http {
 
-class Request: public Message
+class MSPNET_API Request: public Message
 {
 private:
        std::string method;
@@ -17,7 +18,7 @@ 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;
+       std::string str() const override;
 
        static Request parse(const std::string &);
        static Request from_url(const std::string &);