summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch
AgeCommit message (Collapse)Author
2022-07-20LibWeb: Move extract_mime_type() from XMLHttpRequest to HeaderListLinus Groh
Except some minor tweaks, this is a direct copy of Luke's initial implementation in XMLHttpRequest, now replacing the former.
2022-07-20LibWeb: Fix accidental (name, name) header in Headers::fill()Linus Groh
This makes two more WPT tests pass here: http://wpt.live/fetch/api/headers/headers-basic.any.html
2022-07-19LibWeb: Implement '5.1. Headers class' from the Fetch API :^)Linus Groh
2022-07-19LibWeb: Implement HeaderList::sort_and_combine()Linus Groh
2022-07-19LibWeb: Implement CaseInsensitiveBytesTraits::equals()Linus Groh
Turns out HashTable::contains() doesn't solely use hash() for equality checks, so the lack of a proper equals() implementation broke the check in convert_header_names_to_a_sorted_lowercase_set() and caused duplicate entries in header_names_set.
2022-07-19LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespaceLinus Groh
The Fetch spec unfortunately will cause a name clash between the Request concept and the Request JS object - both cannot live in the Web::Fetch namespace, and WrapperGenerator generally assumes `Web::<Name>` for things living in the `<Name>/` subdirectory, so let's instead move infra code into its own namespace - it already sits in a (sub-)subdirectory anyway.
2022-07-18LibWeb: Add Blob to Fetch's Body::SourceType variantLinus Groh
2022-07-16LibWeb: Add definitions from '2.2.6. Responses' in the Fetch specLinus Groh
2022-07-15LibWeb: Add definitions from '2.2.5 Requests' in the Fetch specLinus Groh
2022-07-15LibWeb: Add a couple of missing includes to Fetch's Headers.hLinus Groh
2022-07-14LibWeb: Add definitions from '2.2.4. Bodies' in the Fetch specLinus Groh
...at least the ones that don't require an implementation of the Streams spec :^)
2022-07-14LibWeb: Add definitions from '2.2.3. Statuses' in the Fetch specLinus Groh
2022-07-14LibWeb: Add definitions from '2.2.2. Headers' in the Fetch specLinus Groh
2022-07-14LibWeb: Add definitions from '2.2.1. Methods' in the Fetch specLinus Groh
2022-07-14LibWeb: Mark Fetch::collect_an_http_quoted_string() [[nodiscard]]Linus Groh
2022-07-14LibWeb: Make Fetch::collect_an_http_quoted_string()'s 2nd param optionalLinus Groh
2022-07-14LibWeb: Move Fetch::collect_an_http_quoted_string() into HTTP.{cpp,h}Linus Groh
The Fetch spec is too big to have a generic AbstractOperations.{cpp,h} file, so let's keep AOs in their section-specific files.
2022-07-14LibWeb: Add & use 'HTTP whitespace' from '2.2. HTTP' in the Fetch specLinus Groh
We had two independent definitions of this already, both referring to the Fetch spec.
2022-07-14LibWeb: Add & use 'HTTP tab or space' from '2.2. HTTP' in the Fetch specLinus Groh
2022-07-14LibWeb: Add definitions from '2.1. URL' in the Fetch specLinus Groh
2022-02-12LibWeb: Implement spec-compliant MIME type struct and parserLuke Wilde
This will be used by XHR to extract the Content-Type MIME type to retrieve the charset.