summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.cpp
blob: 98c7cb91cd38f5dc90f76c548ad149d82f088407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibWeb/Fetch/Infrastructure/HTTP/Bodies.h>

namespace Web::Fetch::Infrastructure {

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))
{
}

}