Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::http::Range Struct Reference

HTTP Content Range Class. More...

#include <Range.h>

Public Member Functions

 Range (size_t begin, size_t len) noexcept
 
std::string toString (size_t total) const noexcept
 
size_t toStringLength (size_t total) const noexcept
 

Static Public Member Functions

static std::vector< Rangeparse (const std::string &str, size_t total) noexcept
 Parse Range field.
 

Public Attributes

size_t begin = 0
 
size_t len = 0
 

Detailed Description

HTTP Content Range Class.

Constructor & Destructor Documentation

◆ Range()

sese::net::http::Range::Range ( size_t begin,
size_t len )
noexcept

Member Function Documentation

◆ parse()

std::vector< sese::net::http::Range > sese::net::http::Range::parse ( const std::string & str,
size_t total )
staticnoexcept

Parse Range field.

Parameters
strRange value
   bytes=0-1023
   bytes=0-50, 100-150, 200-
*  
totalTotal size of the range
Returns
Range

References sese::text::AbstractStringBuffer::split().

Referenced by sese::internal::service::http::HttpServiceImpl::handleRequest().

◆ toString()

std::string sese::net::http::Range::toString ( size_t total) const
nodiscardnoexcept

◆ toStringLength()

size_t sese::net::http::Range::toStringLength ( size_t total) const
nodiscardnoexcept

Member Data Documentation

◆ begin

size_t sese::net::http::Range::begin = 0

◆ len

size_t sese::net::http::Range::len = 0

The documentation for this struct was generated from the following files: