BMA Server Framework
/home/barant/Documents/Development/BMASockets/BMAHTTPSession.h
1 #ifndef __BMAHTTPSession_h__
2 #define __BMAHTTPSession_h__
3 
4 #include "BMASession.h"
5 #include "BMAHTTPServer.h"
6 #include "BMAHeader.h"
7 
8 class BMAHTTPSession : public BMASession {
9 
10  public:
11  BMAHTTPSession(BMAEPoll &ePoll, BMAHTTPServer &server);
12  ~BMAHTTPSession();
13 
14  protected:
15  void protocol(std::string data) override;
16 
17  private:
18  BMAHeader *header;
19  enum Status {RECEIVE_REQUEST, SEND_RESPONSE};
20  Status status = RECEIVE_REQUEST;
21 
22  void doRequest(std::string method, std::string path);
23 
24 };
25 
26 #endif
Definition: BMAHTTPServer.h:9
Definition: BMAHTTPSession.h:8
Definition: BMAEPoll.h:29
Definition: BMASession.h:18
Definition: BMAHeader.h:7