ladybird/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP
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
..
Bodies.cpp LibJS: Make PromiseCapability GC-allocated 2022-10-02 23:02:27 +01:00
Bodies.h LibJS: Make PromiseCapability GC-allocated 2022-10-02 23:02:27 +01:00
Headers.cpp LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper 2022-10-24 09:26:16 +01:00
Headers.h LibWeb: Add Fetch::Infrastructure::Header::from_string_pair() helper 2022-10-24 09:26:16 +01:00
Methods.cpp LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Methods.h LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Requests.cpp LibWeb: Fix typo in Fetch::Infrastructure::Request::add_range_header() 2022-10-24 09:24:15 +01:00
Requests.h LibWeb: Fix typo in Fetch::Infrastructure::Request::add_range_header() 2022-10-24 09:24:15 +01:00
Responses.cpp LibWeb: Make Fetch::Infrastructure::{Request,Response} ref-counted 2022-10-05 09:14:49 +01:00
Responses.h LibWeb: Make Fetch::Infrastructure::{Request,Response} ref-counted 2022-10-05 09:14:49 +01:00
Statuses.cpp LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Statuses.h LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00