mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibWeb: Use DOMException in XMLHttpRequest::set_request_header()
This commit is contained in:
parent
4e1de09340
commit
c4d8cce9a2
2 changed files with 11 additions and 11 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <LibWeb/Bindings/WindowObject.h>
|
||||
#include <LibWeb/Bindings/Wrappable.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/XHR/XMLHttpRequestEventTarget.h>
|
||||
|
||||
namespace Web::XHR {
|
||||
|
@ -71,7 +72,7 @@ public:
|
|||
void open(const String& method, const String& url);
|
||||
void send();
|
||||
|
||||
void set_request_header(const String& header, const String& value);
|
||||
DOM::ExceptionOr<void> set_request_header(const String& header, const String& value);
|
||||
|
||||
private:
|
||||
virtual void ref_event_target() override { ref(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue