/home/barant/Documents/Development/BMASockets/BMAHTTPSession.h
#ifndef __BMAHTTPSession_h__
#define __BMAHTTPSession_h__
#include "BMASession.h"
#include "BMAHTTPServer.h"
#include "BMAHeader.h"
class BMAHTTPSession : public BMASession {
public:
BMAHTTPSession(BMAEPoll &ePoll, BMAHTTPServer &server);
~BMAHTTPSession();
protected:
void protocol(std::string data) override;
private:
BMAHeader *header;
enum Status {RECEIVE_REQUEST, SEND_RESPONSE};
Status status = RECEIVE_REQUEST;
void doRequest(std::string method, std::string path);
};
#endif
BMAHTTPServer
Definition: BMAHTTPServer.h:9
BMAHTTPSession
Definition: BMAHTTPSession.h:8
BMAEPoll
Definition: BMAEPoll.h:29
BMASession
Definition: BMASession.h:18
BMAHeader
Definition: BMAHeader.h:7