| 72 | } |
| 73 | |
| 74 | std::list<std::string> http_server_request::get_header_list(const std::string& header_name) const { |
| 75 | auto hdrs = request_headers.equal_range(lowercase(header_name)); |
| 76 | if (hdrs.first != request_headers.end()) { |
| 77 | std::list<std::string> data; |
| 78 | for ( auto i = hdrs.first; i != hdrs.second; ++i ) { |
| 79 | data.emplace_back(i->second); |
| 80 | } |
| 81 | return data; |
| 82 | } |
| 83 | return std::list<std::string>(); |
| 84 | } |
| 85 | |
| 86 | std::multimap<std::string, std::string> http_server_request::get_headers() const { |
| 87 | return request_headers; |