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