28 lines
544 B
C++
28 lines
544 B
C++
#ifndef __HTTPSessions_h__
|
|
#define __HTTPSessions_h__
|
|
|
|
#include "Header.h"
|
|
#include "Response.h"
|
|
|
|
namespace http {
|
|
|
|
class HTTPSession;
|
|
|
|
class HTTPSessions {
|
|
|
|
public:
|
|
HTTPSession * findSessionByHeader(core::Header &header, core::Response &response);
|
|
HTTPSession * findSessionById(std::string sessionId, core::Response &response);
|
|
|
|
private:
|
|
HTTPSession * createHTTPSession();
|
|
std::string generateSessionId();
|
|
|
|
std::map<std::string, HTTPSession*> sessions;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|