30 lines
589 B
C++
Raw Normal View History

2025-03-07 02:25:53 +01:00
#ifndef seafire__protocol__rfc7230__content_length_hxx_
#define seafire__protocol__rfc7230__content_length_hxx_
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
#include <system_error>
#include <vector>
namespace seafire::protocol::rfc7230
{
// fixme: make class
struct content_length_t
{
using alias_type = std::uint64_t;
static constexpr char const name[] = "content-length";
static
std::optional<std::size_t>
try_parse(std::vector<std::string> const&, std::error_code&);
};
} // namespace seafire::protocol::rfc7230
#endif