mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:28:11 +00:00
LibWeb: Add XMLHttpRequest Document response type
This commit is contained in:
parent
b8f8b22aa5
commit
222cc29c5c
7 changed files with 122 additions and 12 deletions
|
@ -48,6 +48,7 @@ public:
|
|||
Fetch::Infrastructure::Status status() const;
|
||||
WebIDL::ExceptionOr<String> status_text() const;
|
||||
WebIDL::ExceptionOr<String> response_text() const;
|
||||
WebIDL::ExceptionOr<JS::GCPtr<DOM::Document>> response_xml();
|
||||
WebIDL::ExceptionOr<JS::Value> response();
|
||||
Bindings::XMLHttpRequestResponseType response_type() const { return m_response_type; }
|
||||
|
||||
|
@ -86,6 +87,7 @@ private:
|
|||
ErrorOr<MimeSniff::MimeType> get_final_mime_type() const;
|
||||
|
||||
String get_text_response() const;
|
||||
void set_document_response();
|
||||
|
||||
WebIDL::ExceptionOr<void> handle_response_end_of_body();
|
||||
WebIDL::ExceptionOr<void> handle_errors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue