Implement concept-header-list-sort-and-combine

This commit is contained in:
2shiori17 2023-03-06 23:34:04 +09:00
parent 4ee3f575f6
commit ee1f241231
4 changed files with 24 additions and 12 deletions

View file

@ -157,7 +157,7 @@ fn collect_http_quoted_string(position: &mut Peekable<Chars>, extract_value: boo
}
/// <https://fetch.spec.whatwg.org/#concept-header-list-get>
fn get_value_from_header_list(name: &str, headers: &HeaderMap) -> Option<String> {
pub fn get_value_from_header_list(name: &str, headers: &HeaderMap) -> Option<String> {
let values = headers
.get_all(name)
.iter()