Rudiments
urlhttprequest.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information
3 
4 #ifndef RUDIMENTS_URLHTTPREQUEST_H
5 #define RUDIMENTS_URLHTTPREQUEST_H
6 
7 #include <rudiments/private/urlhttprequestincludes.h>
8 
39 class RUDIMENTS_DLLSPEC urlhttprequest : public httprequest {
40  public:
42  virtual ~urlhttprequest();
43 
44 
45 
49  void dumpVariables();
50 
51 
52 
57  const char *application();
58 
63  const char *applicationPath();
64 
69  const char *applicationUrl();
70 
75  const char *program();
76 
81  const char *programPath();
82 
87  const char *programUrl();
88 
93  const char *skin();
94 
99  const char *skinPath();
100 
105  const char *skinUrl();
106 
111  const char *module();
112 
117  const char *modulePath();
118 
123  const char *moduleUrl();
124 
129  const char *page();
130 
135  const char *pagePath();
136 
141  const char *pageUrl();
142 
144  uint64_t getUrlVariableCount();
145 
147  const char * const *getUrlVariables();
148 
151  const char * const *getUrlValues();
152 
153 
154 
156  const char *getSkinVariable(const char *name);
157 
159  uint64_t getSkinVariableCount();
160 
164  const char * const *getSkinVariables();
165 
168  const char * const *getSkinValues();
169 
173  bool setSkinVariable(const char *name, const char *value);
174 
175 
176 
185  virtual bool methodAllowed();
186 
195  virtual bool ipAllowed();
196 
205  virtual bool refererAllowed();
206 
207 
208  #include <rudiments/private/urlhttprequest.h>
209 };
210 
211 
212 #endif
virtual bool methodAllowed(const char *deniedmethods, const char *allowedmethods)
Definition: urlhttprequest.h:39
Definition: httpserverapi.h:9
virtual bool ipAllowed(const char *deniedips, const char *allowedips)
virtual bool refererAllowed(const char *deniedreferers, const char *allowedreferers)
virtual void dumpVariables()
Definition: httprequest.h:12