Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
Range.hpp
Go to the documentation of this file.
1#pragma once
2#include <optional>
3#include <variant>
4
5namespace Thoth::Http::NHeaders {
6 struct PrefixedRange {
7 unsigned int start;
8 std::optional<unsigned int> end; // make start + count to eliminate invalid state?
9 };
11 unsigned int last;
12 };
13 using Range = std::variant<PrefixedRange, SuffixedRange>;
14}
15
16
17#include <Thoth/Http/NHeaders/Request/Headers/Range.tpp>
Definition _base.hpp:5
std::variant< PrefixedRange, SuffixedRange > Range
Definition Range.hpp:13
unsigned int start
Definition Range.hpp:7
std::optional< unsigned int > end
Definition Range.hpp:8
unsigned int last
Definition Range.hpp:11