const correctness

This commit is contained in:
Peter Thorson committed 2014-11-18 21:58:17 -05:00
1 parent d3ba1187de
commit c23639d394
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -899,7 +899,7 @@ public:
* @param key Name of the header to get
* @return The value of the header
*/
std::string const & get_request_header(std::string const & key);
std::string const & get_request_header(std::string const & key) const;
/// Retrieve a response header
/**
@@ -908,7 +908,7 @@ public:
* @param key Name of the header to get
* @return The value of the header
*/
std::string const & get_response_header(std::string const & key);
std::string const & get_response_header(std::string const & key) const;
/// Set response status code and message
/**
+2 -2
View File
@@ -507,13 +507,13 @@ void connection<config>::select_subprotocol(std::string const & value) {
template <typename config>
std::string const &
connection<config>::get_request_header(std::string const & key) {
connection<config>::get_request_header(std::string const & key) const {
return m_request.get_header(key);
}
template <typename config>
std::string const &
connection<config>::get_response_header(std::string const & key) {
connection<config>::get_response_header(std::string const & key) const {
return m_response.get_header(key);
}