NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
http_range.hpp 文件参考

HTTP 范围请求(Range Requests)工具函数 更多...

http_range.hpp 的引用(Include)关系图:

浏览该文件的源代码.

struct  neforce::http::byte_range
 字节范围结构体 更多...

函数

vector< byte_rangeneforce::http::parse_ranges (string_view range_header, uint64_t file_size, size_t max_ranges=100)
 解析HTTP Range头部值
string neforce::http::build_content_range (const byte_range &range, uint64_t total_size)
 构建Content-Range头部值
string neforce::http::build_multipart_ranges (const vector< byte_range > &ranges, string_view content_type, string_view boundary, function< string(const byte_range &)> get_range_body, uint64_t total_size=0)
 构建multipart/byteranges响应体

详细描述

HTTP 范围请求(Range Requests)工具函数

在文件 http_range.hpp 中定义.