1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 19:07:35 +00:00
serenity/Userland/Libraries/LibWeb/XHR
Linus Groh 65f5c7adbc LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper
This allows us to use this:

```cpp
auto header = TRY_OR_RETURN_OOM(realm,
    Infrastructure::Header::from_string_pair(name, value));
```

Instead of the somewhat unwieldly:

```cpp
auto header = Infrastructure::Header {
    .name = TRY_OR_RETURN_OOM(realm, ByteBuffer::copy(name.bytes())),
    .value = TRY_OR_RETURN_OOM(realm, ByteBuffer::copy(value.bytes())),
};
```
2022-10-24 09:26:16 +01:00
..
EventNames.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EventNames.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProgressEvent.cpp LibWeb: Remove unecessary dependence on Window from Fetch, XHR, FileAPI 2022-10-01 21:05:32 +01:00
ProgressEvent.h LibWeb: Remove unecessary dependence on Window from Fetch, XHR, FileAPI 2022-10-01 21:05:32 +01:00
ProgressEvent.idl LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
XMLHttpRequest.cpp LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper 2022-10-24 09:26:16 +01:00
XMLHttpRequest.h LibWeb: Revert support for DOM::Document in XHR::send() 2022-10-20 17:57:52 +02:00
XMLHttpRequest.idl LibWeb: Revert support for DOM::Document in XHR::send() 2022-10-20 17:57:52 +02:00
XMLHttpRequestEventTarget.cpp LibWeb: Move CallbackType from Bindings/ to WebIDL/ 2022-09-24 19:31:39 +01:00
XMLHttpRequestEventTarget.h LibWeb: Move CallbackType from Bindings/ to WebIDL/ 2022-09-24 19:31:39 +01:00
XMLHttpRequestEventTarget.idl LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00