Rudiments

httprequest.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information
3
4 protected:
5 void buildList(const char ***vars, const char ***vals,
6 namevaluepairs *nvp);
7 void cleanUp(const char ***vars, const char ***vals,
8 namevaluepairs *nvp);
9
10 typedef enum {
11 get_request,
12 head_request,
13 post_request
14 } httprequestmethod;
15
16 virtual void parseQueryString(httprequestmethod method);
17
18 virtual void buildAllVariables();
19
20 bool dirtyAllVars();
21 void dirtyAllVars(bool dirtyallvars);
22 uint64_t allVariableCount();
23 void allVariableCount(uint64_t allvariablecount);
24 const char ***allVars();
25 const char ***allVals();
26
27 private:
28
29 void initCookies();
30 void initParameters();
31 void initFileNames();
32 void parseMultipart();
33 void getNewNames(stringbuffer **name,
34 stringbuffer **filename,
35 stringbuffer **mimetype);
36 void getTempFile(const char *filename,
37 file **tempfile,
38 char **tempfilename);
39 stringbuffer *getName();
40 stringbuffer *getFileName();
41 stringbuffer *getSomeKindOfName(char c);
42 stringbuffer *getMimeType();
43
44 void cleanParameters();
45 void cleanFiles();
46 void cleanCookies();
47
48 void buildParameterList();
49 void buildFileNamesList();
50 void buildCookieList();
51 void buildFileNameList();
52
53 httprequestprivate *pvt;
file
Definition: file.h:19
stringbuffer
Definition: stringbuffer.h:13