Sese Framework
x.y.z
A cross-platform framework
|
HTTP 内容区间类 更多...
#include <Range.h>
Public 成员函数 | |
Range (size_t begin, size_t len) noexcept | |
std::string | toString (size_t total) const noexcept |
size_t | toStringLength (size_t total) const noexcept |
静态 Public 成员函数 | |
static std::vector< Range > | parse (const std::string &str, size_t total) noexcept |
解析 Range 字段 | |
Public 属性 | |
size_t | begin = 0 |
size_t | len = 0 |
HTTP 内容区间类
|
noexcept |
|
staticnoexcept |
解析 Range 字段
str | Range 值 bytes=0-1023 bytes=0-50, 100-150, 200- * |
total | 区间总大小 |
引用了 sese::text::AbstractStringBuffer::split().
被这些函数引用 sese::internal::service::http::HttpServiceImpl::handleRequest().
|
nodiscardnoexcept |
|
nodiscardnoexcept |
size_t sese::net::http::Range::begin = 0 |
size_t sese::net::http::Range::len = 0 |