summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-07-17 23:52:02 +0100
committerLinus Groh <mail@linusgroh.de>2022-07-19 00:27:35 +0100
commit2726fc9c7376b52cdedc5b6c18f990f0e22daed7 (patch)
tree62fb4625f80f6de2d4973150de23bcc9068411d3 /Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h
parent4b415a23c14f8c61024033c2e748343c4eee6359 (diff)
downloadserenity-2726fc9c7376b52cdedc5b6c18f990f0e22daed7.zip
LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h')
-rw-r--r--Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h
index 1429860661..365ce296dd 100644
--- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h
+++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h
@@ -55,7 +55,7 @@ public:
using RefCounted::unref;
ReadyState ready_state() const { return m_ready_state; };
- Fetch::Status status() const { return m_status; };
+ Fetch::Infrastructure::Status status() const { return m_status; };
DOM::ExceptionOr<String> response_text() const;
DOM::ExceptionOr<JS::Value> response();
Bindings::XMLHttpRequestResponseType response_type() const { return m_response_type; }
@@ -84,7 +84,7 @@ private:
virtual JS::Object* create_wrapper(JS::GlobalObject&) override;
void set_ready_state(ReadyState);
- void set_status(Fetch::Status status) { m_status = status; }
+ void set_status(Fetch::Infrastructure::Status status) { m_status = status; }
void fire_progress_event(String const&, u64, u64);
MimeSniff::MimeType get_response_mime_type() const;
@@ -93,14 +93,14 @@ private:
String get_text_response() const;
- Optional<MimeSniff::MimeType> extract_mime_type(Fetch::HeaderList const& header_list) const;
+ Optional<MimeSniff::MimeType> extract_mime_type(Fetch::Infrastructure::HeaderList const& header_list) const;
explicit XMLHttpRequest(HTML::Window&);
NonnullRefPtr<HTML::Window> m_window;
ReadyState m_ready_state { ReadyState::Unsent };
- Fetch::Status m_status { 0 };
+ Fetch::Infrastructure::Status m_status { 0 };
bool m_send { false };
u32 m_timeout { 0 };