| 60 | } |
| 61 | |
| 62 | const std::string http_server_request::get_header(const std::string& header_name) const { |
| 63 | auto hdrs = request_headers.find(lowercase(header_name)); |
| 64 | if (hdrs != request_headers.end()) { |
| 65 | return hdrs->second; |
| 66 | } |
| 67 | return std::string(); |
| 68 | } |
| 69 | |
| 70 | size_t http_server_request::get_header_count(const std::string& header_name) const { |
| 71 | return request_headers.count(lowercase(header_name)); |