2#include <Hermes/Socket/_base/_base.hpp>
8 std::filesystem::path
path;
14 template <Hermes::ByteLike T =
char>
18 using BodyType = std::expected<FileOutputRange, Http::RequestError>;
23 static constexpr int Mode();
39 [[nodiscard]] std::ostream_iterator<T, T>
begin();
41 [[nodiscard]]
static std::unreachable_sentinel_t
end();
44 std::basic_ofstream<T> _outStream;
51 static_assert(std::ranges::range<TextFileOutputRange>);
54#include <Thoth/Dsa/FileOutputRange.tpp>
Definition FileOutputRange.hpp:7
std::filesystem::path path
Definition FileOutputRange.hpp:8
int maxSize
Definition FileOutputRange.hpp:10
int mode
Definition FileOutputRange.hpp:11
std::optional< vector< Http::NHeaders::MimeType > > acceptedTypes
Definition FileOutputRange.hpp:9
Definition FileOutputRange.hpp:15
FileOutputRange & operator=(const FileOutputRange &other)=delete
FileOutputRange(std::filesystem::path &&path, int mode=0)
static constexpr auto H_AsBody(FileBuilderParams &¶ms)
constexpr bool operator==(const FileOutputRange &other) const =default
std::ostream_iterator< T, T > begin()
FileOutputRange(std::basic_ofstream< T > &&file)
static std::unreachable_sentinel_t end()
FileOutputRange(FileOutputRange &&other) noexcept
std::expected< FileOutputRange, Http::RequestError > BodyType
Definition FileOutputRange.hpp:18
static constexpr int Mode()
T value_type
Definition FileOutputRange.hpp:17
static constexpr auto H_AsBody(const FileBuilderParams ¶ms)
FileOutputRange & operator=(FileOutputRange &&other) noexcept
FileOutputRange(const FileOutputRange &other)=delete
FileOutputRange(const std::filesystem::path &path, int mode=0)