Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
HttpRangeUtils Class Reference

#include <HttpRangeUtils.h>

Static Public Member Functions

static std::string GenerateContentRangeHeaderValue (const CHttpRange *range)
 Generates a valid Content-Range HTTP header value for the given HTTP range definition.
 
static std::string GenerateContentRangeHeaderValue (uint64_t start, uint64_t end, uint64_t total)
 Generates a valid Content-Range HTTP header value for the given HTTP range properties.
 

Member Function Documentation

◆ GenerateContentRangeHeaderValue() [1/2]

std::string HttpRangeUtils::GenerateContentRangeHeaderValue ( const CHttpRange * range)
static

Generates a valid Content-Range HTTP header value for the given HTTP range definition.

Parameters
rangeHTTP range definition used to generate the Content-Range HTTP header
Returns
Content-Range HTTP header value

◆ GenerateContentRangeHeaderValue() [2/2]

std::string HttpRangeUtils::GenerateContentRangeHeaderValue ( uint64_t start,
uint64_t end,
uint64_t total )
static

Generates a valid Content-Range HTTP header value for the given HTTP range properties.

Parameters
startStart position of the HTTP range
endLast/End position of the HTTP range
totalTotal length of original content (not just the range)
Returns
Content-Range HTTP header value

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