1 #ifndef CPP_WEB_SERVER_HTTP_REQUEST_HPP
2 #define CPP_WEB_SERVER_HTTP_REQUEST_HPP
6 #include <boost/lexical_cast.hpp>
30 bool has_header(
const std::string& name)
const;
34 const std::string& default_value)
const;
40 const std::string& default_value)
const;
44 const T& default_value)
const
46 std::map<std::string, std::string>::const_iterator itr =
52 return boost::lexical_cast<T>(itr->second);
54 catch (
const boost::bad_lexical_cast&)