1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibWeb: Allow passing a (String) body to XMLHttpRequest.send()

This patch implements the simplest form of send(body): strings.
This commit is contained in:
Andreas Kling 2021-09-27 01:40:21 +02:00
parent 194dc8b25d
commit ed5c807c99
3 changed files with 5 additions and 3 deletions

View file

@ -52,7 +52,7 @@ public:
String response_text() const;
DOM::ExceptionOr<void> open(const String& method, const String& url);
DOM::ExceptionOr<void> send();
DOM::ExceptionOr<void> send(String const& body);
DOM::ExceptionOr<void> set_request_header(const String& header, const String& value);