kaycxx-http
HTTP client library
Loading...
Searching...
No Matches
kaycxx
http
sized_istream.hpp
1
// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2
// SPDX-License-Identifier: MIT
3
4
#pragma once
5
6
#include <cstdint>
7
#include <functional>
8
#include <iosfwd>
9
10
namespace
kaycxx::http {
11
12
class
request_body
;
13
15
class
sized_istream
{
16
public
:
23
sized_istream
(std::istream& input, std::uint64_t size)
noexcept
;
24
25
private
:
27
std::reference_wrapper<std::istream> input_;
28
30
std::uint64_t size_;
31
32
friend
class
request_body;
33
};
34
35
}
// namespace kaycxx::http
kaycxx::http::request_body
Non-owning HTTP request body descriptor.
Definition
request_body.hpp:33
kaycxx::http::sized_istream::sized_istream
sized_istream(std::istream &input, std::uint64_t size) noexcept
Associates an input stream with the number of bytes to read from it.
Generated by
1.15.0