httprequest.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information
#ifndef RUDIMENTS_HTTPREQUEST_H
#define RUDIMENTS_HTTPREQUEST_H
#include <rudiments/private/httprequestincludes.h>
class RUDIMENTS_DLLSPEC httprequest {
public:
httprequest(httpserverapi *sapi);
virtual ~httprequest();
virtual void dumpVariables();
const char *getEnvironmentVariable(const char *name);
uint64_t getEnvironmentVariableCount();
const char * const *getEnvironmentVariables();
const char * const *getEnvironmentValues();
bool setEnvironmentVariable(const char *name,
const char *value);
void dumpEnvironment();
const char *getParameter(const char *name);
void getParametersAsGetString(output *container,
const char * const *exceptions);
void getParametersAsHiddenVariables(output *container,
const char * const *excepcions);
uint64_t getParameterCount();
const char * const *getParameterVariables();
const char * const *getParameterValues();
bool setParameter(const char *name, const char *value);
const char *getFileParameterFilename(const char *name);
const char *getFileParameterTempFilename(const char *name);
const char *getFileParameterMimeType(const char *name);
uint64_t getFileCount();
const char * const *getFileNames();
bool setFileParameter(const char *name,
const char *filename,
const char *tempfilename,
const char *mimetype);
void removeTempFiles();
const char *getCookie(const char *name);
uint64_t getCookieCount();
const char * const *getCookieVariables();
const char * const *getCookieValues();
bool setCookie(const char *name, const char *value);
uint64_t getAllVariableCount();
const char * const *getAllVariables();
const char * const *getAllValues();
virtual bool methodAllowed(const char *deniedmethods,
const char *allowedmethods);
virtual bool ipAllowed(const char *deniedips,
const char *allowedips);
virtual bool refererAllowed(const char *deniedreferers,
const char *allowedreferers);
struct parameterrequirement {
const char *variable;
bool allowempty;
};
bool requiredParameters(parameterrequirement **pr);
#include <rudiments/private/httprequest.h>
};
#endif
httprequest
Definition: httprequest.h:12
httprequest::getFileParameterTempFilename
const char * getFileParameterTempFilename(const char *name)
httprequest::getCookieValues
const char *const * getCookieValues()
httprequest::getAllVariables
const char *const * getAllVariables()
httprequest::getCookieCount
uint64_t getCookieCount()
httprequest::getParameterCount
uint64_t getParameterCount()
httprequest::setParameter
bool setParameter(const char *name, const char *value)
httprequest::dumpVariables
virtual void dumpVariables()
httprequest::getEnvironmentVariables
const char *const * getEnvironmentVariables()
httprequest::getFileParameterMimeType
const char * getFileParameterMimeType(const char *name)
httprequest::getParameterVariables
const char *const * getParameterVariables()
httprequest::getAllValues
const char *const * getAllValues()
httprequest::ipAllowed
virtual bool ipAllowed(const char *deniedips, const char *allowedips)
httprequest::refererAllowed
virtual bool refererAllowed(const char *deniedreferers, const char *allowedreferers)
httprequest::dumpEnvironment
void dumpEnvironment()
httprequest::getParameterValues
const char *const * getParameterValues()
httprequest::methodAllowed
virtual bool methodAllowed(const char *deniedmethods, const char *allowedmethods)
httprequest::setCookie
bool setCookie(const char *name, const char *value)
httprequest::getParametersAsGetString
void getParametersAsGetString(output *container, const char *const *exceptions)
httprequest::getEnvironmentValues
const char *const * getEnvironmentValues()
httprequest::requiredParameters
bool requiredParameters(parameterrequirement **pr)
httprequest::getEnvironmentVariableCount
uint64_t getEnvironmentVariableCount()
httprequest::getCookieVariables
const char *const * getCookieVariables()
httprequest::getFileNames
const char *const * getFileNames()
httprequest::getCookie
const char * getCookie(const char *name)
httprequest::getParameter
const char * getParameter(const char *name)
httprequest::setEnvironmentVariable
bool setEnvironmentVariable(const char *name, const char *value)
httprequest::getFileCount
uint64_t getFileCount()
httprequest::setFileParameter
bool setFileParameter(const char *name, const char *filename, const char *tempfilename, const char *mimetype)
httprequest::getAllVariableCount
uint64_t getAllVariableCount()
httprequest::getParametersAsHiddenVariables
void getParametersAsHiddenVariables(output *container, const char *const *excepcions)
httprequest::removeTempFiles
void removeTempFiles()
httprequest::getFileParameterFilename
const char * getFileParameterFilename(const char *name)
httprequest::getEnvironmentVariable
const char * getEnvironmentVariable(const char *name)
httpserverapi
Definition: httpserverapi.h:9
output
Definition: output.h:9
httprequest::parameterrequirement
Definition: httprequest.h:187