1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00
serenity/Userland/Libraries/LibWeb/Fetch
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
..
Infrastructure LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper 2022-10-24 09:26:16 +01:00
Body.cpp LibJS: Make PromiseCapability GC-allocated 2022-10-02 23:02:27 +01:00
Body.h LibWeb: Implement '5.3. Body mixin' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
Body.idl LibWeb: Implement '5.3. Body mixin' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
BodyInit.cpp LibWeb: Remove unecessary dependence on Window from assorted classes 2022-10-01 21:05:32 +01:00
BodyInit.h LibWeb: Support ReadonlyBytes as argument for extract_body() 2022-09-27 14:56:17 +01:00
BodyInit.idl LibWeb: Remove workaround for nested BodyInit IDL union type 2022-10-21 12:11:24 +02:00
Enums.cpp LibWeb: Implement '5.5. Response class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
Enums.h LibWeb: Implement '5.5. Response class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
Headers.cpp LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper 2022-10-24 09:26:16 +01:00
Headers.h LibWeb: Remove unecessary dependence on Window from Fetch, XHR, FileAPI 2022-10-01 21:05:32 +01:00
Headers.idl LibWeb: Implement '5.1. Headers class' from the Fetch API :^) 2022-07-19 00:27:35 +01:00
HeadersIterator.cpp LibWeb: Remove unecessary dependence on Window from Fetch, XHR, FileAPI 2022-10-01 21:05:32 +01:00
HeadersIterator.h LibWeb: Remove WRAPPER_HACK() macro 2022-09-21 21:12:24 +01:00
Request.cpp LibWeb/Fetch: Add duplex property to Request 2022-10-15 12:15:31 +02:00
Request.h LibWeb/Fetch: Add duplex property to Request 2022-10-15 12:15:31 +02:00
Request.idl LibWeb/Fetch: Add duplex property to Request 2022-10-15 12:15:31 +02:00
Response.cpp LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper 2022-10-24 09:26:16 +01:00
Response.h BindingsGenerator+LibWeb: Pass a VM to static IDL-based functions 2022-10-06 21:45:07 +01:00
Response.idl LibWeb: Implement '5.5. Response class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00