mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
![]() 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())), }; ``` |
||
---|---|---|
.. | ||
HTTP | ||
HTTP.cpp | ||
HTTP.h | ||
URL.cpp | ||
URL.h |