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