LibWeb: Move extract_mime_type() from XMLHttpRequest to HeaderList

Except some minor tweaks, this is a direct copy of Luke's initial
implementation in XMLHttpRequest, now replacing the former.
This commit is contained in:
Linus Groh 2022-07-20 17:47:29 +01:00
commit 042dfc7284
Notes: sideshowbarker 2024-07-17 08:45:14 +09:00
4 changed files with 63 additions and 60 deletions

View file

@ -93,8 +93,6 @@ private:
String get_text_response() const;
Optional<MimeSniff::MimeType> extract_mime_type(Fetch::Infrastructure::HeaderList const& header_list) const;
explicit XMLHttpRequest(HTML::Window&);
NonnullRefPtr<HTML::Window> m_window;