00001 #ifndef WEBSERVERSESSION_H 00002 #define WEBSERVERSESSION_H 00003 00004 #include "httpsession.h" 00005 00006 class WebServerSession : public HttpSession 00007 { 00008 Q_OBJECT 00009 public: 00010 WebServerSession(int socketDescriptor, QObject *parent = NULL); 00011 int isRequestSupported(const HttpRequest &request) const; 00012 00013 protected: 00014 bool hasEntityBody(const HttpRequest &request) throw(HttpResponse); 00015 bool atEnd(const HttpRequest &request, const QByteArray &buffer) throw(HttpResponse); 00016 HttpResponse onRequest(const HttpRequest &request); 00017 }; 00018 00019 #endif // WEBSERVERSESSION_H
1.6.3