1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 15:55:07 +00:00
serenity/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.cpp
Linus Groh f507f68d4a LibWeb: Add definitions from '2.2.4. Bodies' in the Fetch spec
...at least the ones that don't require an implementation of the Streams
spec :^)
2022-07-14 00:42:26 +01:00

23 lines
423 B
C++

/*
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Fetch/Infrastructure/HTTP/Bodies.h>
namespace Web::Fetch {
Body::Body(ReadableStreamDummy stream)
: m_stream(stream)
{
}
Body::Body(ReadableStreamDummy stream, SourceType source, Optional<u64> length)
: m_stream(stream)
, m_source(move(source))
, m_length(move(length))
{
}
}