mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-09 06:38:36 +02:00
our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
52
src/nhttpd/yhttpd_core/yrequest.h
Normal file
52
src/nhttpd/yhttpd_core/yrequest.h
Normal file
@@ -0,0 +1,52 @@
|
||||
//=============================================================================
|
||||
// YHTTPD
|
||||
// Request
|
||||
//=============================================================================
|
||||
|
||||
#ifndef __yhttpd_request_h__
|
||||
#define __yhttpd_request_h__
|
||||
|
||||
// C++
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
// yhttpd
|
||||
#include "yconfig.h"
|
||||
#include "ytypes_globals.h"
|
||||
|
||||
// forward declaration
|
||||
class CWebserver;
|
||||
class CWebserverConnection;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
class CWebserverRequest
|
||||
{
|
||||
private:
|
||||
bool HandlePost();
|
||||
unsigned int HandlePostBoundary(std::string boundary, unsigned int content_len);
|
||||
bool ParseStartLine(std::string start_line);
|
||||
bool ParseParams(std::string param_string);
|
||||
bool ParseHeader(std::string header);
|
||||
|
||||
protected:
|
||||
std::string rawbuffer;
|
||||
|
||||
// request control
|
||||
public:
|
||||
class CWebserver *Webserver;
|
||||
class CWebserverConnection *Connection;
|
||||
|
||||
// Request Data
|
||||
CStringList ParameterList;
|
||||
CStringList HeaderList;
|
||||
CStringList UrlData; // url, fullurl, path, filename, fileext, paramstring
|
||||
void analyzeURL(std::string);
|
||||
|
||||
// constructor & destructor
|
||||
CWebserverRequest() {};
|
||||
CWebserverRequest(CWebserver *pWebserver);
|
||||
// Handler
|
||||
bool HandleRequest(void);
|
||||
};
|
||||
|
||||
#endif /* __yhttpd_request_h__ */
|
Reference in New Issue
Block a user