Bodies.cpp 423 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Fetch/Infrastructure/HTTP/Bodies.h>
  7. namespace Web::Fetch {
  8. Body::Body(ReadableStreamDummy stream)
  9. : m_stream(stream)
  10. {
  11. }
  12. Body::Body(ReadableStreamDummy stream, SourceType source, Optional<u64> length)
  13. : m_stream(stream)
  14. , m_source(move(source))
  15. , m_length(move(length))
  16. {
  17. }
  18. }