]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/response.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / http / response.h
index bb471f0de4fe80879ea7da223152b8ee4e671486..8644b7228a11b1b3ce5652c7998ec474a28109ba 100644 (file)
@@ -1,22 +1,23 @@
 #ifndef MSP_HTTP_RESPONSE_H_
 #define MSP_HTTP_RESPONSE_H_
 
+#include <msp/net/mspnet_api.h>
 #include "message.h"
 #include "status.h"
 
 namespace Msp {
 namespace Http {
 
-class Response: public Message
+class MSPNET_API Response: public Message
 {
 private:
        Status status;
 
-       Response() { }
+       Response() = default;
 public:
        Response(Status);
        Status get_status() const { return status; }
-       virtual std::string str() const;
+       std::string str() const override;
 
        static Response parse(const std::string &);
 };