27#include <unordered_map>
32struct request::Env::Data {
33 unordered_map<string, string> environment;
35 explicit Data(
RequestInitContainer const& initContainer) : environment(initContainer.environment) {}
41 data = make_unique<Data>(initContainer);
44std::string request::Env::operator[](std::string
const& envVar)
const {
45 if (data->environment.count(envVar)) {
46 return data->environment.at(envVar);
Accessor class for environment variables.
Container used by request handlers to initiate the nawa::Request object.
std::vector< std::string > getRequestPath() const
#define NAWA_DEFAULT_DESTRUCTOR_IMPL_WITH_NS(Namespace, Class)
std::vector< std::string > splitPath(std::string const &pathString)
Contains useful functions that improve the readability and facilitate maintenance of the NAWA code.