]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/status.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / http / status.h
index fe18a85f3251384e18518788df62b7f5413f450e..5f4656e26fc706b0cd972332178b8becc630808b 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_HTTPSERVER_STATUS_H_
 
 #include <ostream>
+#include <msp/net/mspnet_api.h>
 
 namespace Msp {
 namespace Http {
@@ -10,6 +11,8 @@ enum Status
 {
        NONE = 0,
        OK = 200,
+       MOVED_PERMANENTLY = 301,
+       SEE_OTHER = 303,
        BAD_REQUEST = 400,
        FORBIDDEN = 403,
        NOT_FOUND = 404,
@@ -18,7 +21,7 @@ enum Status
        NOT_IMPLEMENTED = 501
 };
 
-extern std::ostream &operator<<(std::ostream &, Status);
+MSPNET_API std::ostream &operator<<(std::ostream &, Status);
 
 } // namespace Http
 } // namespace Msp