#include "cgi_environment_vars.hpp" #include "get_env.hpp" namespace tawashi { std::vector cgi_environment_vars() { using boost::string_ref; std::vector retlist; retlist.reserve(CGIVars::_size()); for (CGIVars var : CGIVars::_values()) { auto value = get_env_as(var._to_string(), ""); retlist.push_back(std::string(value.data(), value.size())); } return retlist; } } //namespace tawashi