This document shows the contents of request.hpp if you are starting the tutorial in Part 4. Developing Classes in the IDE and subsequent parts.
#include <istring.hpp> //Required for use of IString class
// Class Definition
class Request {
IString ReqString, //Request string from cgi call
lReqString, //Lowercase version for searches
ReqMethod, //How request was obtained
Op, //Operation requested
Filename, //File requested
Filepath, //File, with slashes corrected
Key; //User's key value
int ReqLen; //Length of request string
public:
//Constructor and get methods
Request();
IString GetReqString() {return ReqString; }
IString GetOp() {return Op;}
IString GetFilename() {return Filename;}
IString GetFilepath() {return Filepath;}
IString GetKey() {return Key;}
int GetReqLen() {return ReqLen;};
//Get the value of an attribute=value pair from request string
IString GetValue(IString Attribute);
};
