]> git.tdb.fi Git - libs/net.git/blob - source/http/response.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / http / response.h
1 #ifndef MSP_HTTP_RESPONSE_H_
2 #define MSP_HTTP_RESPONSE_H_
3
4 #include <msp/net/mspnet_api.h>
5 #include "message.h"
6 #include "status.h"
7
8 namespace Msp {
9 namespace Http {
10
11 class MSPNET_API Response: public Message
12 {
13 private:
14         Status status;
15
16         Response() = default;
17 public:
18         Response(Status);
19         Status get_status() const { return status; }
20         std::string str() const override;
21
22         static Response parse(const std::string &);
23 };
24
25 } // namespace Http
26 } // namespace Msp
27
28 #endif