HTTP header information
The class used to access HTTP header information and get his information.
Used on kodi::vfs::GetHttpHeader().
The following table contains values that can be get with class HttpHeader :
Description | Type | Get call |
Get the value associated with this parameter of these HTTP headers | std::string | GetValue |
Get the values as list associated with this parameter of these HTTP headers | std::vector<std::string> | GetValues |
Get the full header string associated with these HTTP headers | std::string | GetHeader |
Get the mime type associated with these HTTP headers | std::string | GetMimeType |
Get the charset associated with these HTTP headers | std::string | GetCharset |
The protocol line associated with these HTTP headers | std::string | GetProtoLine |
◆ GetValue()
std::string GetValue |
( |
const std::string & |
param | ) |
const |
|
inline |
Get the value associated with this parameter of these HTTP headers.
- Parameters
-
[in] | param | The name of the parameter a value is required for |
- Returns
- The value found
◆ GetValues()
std::vector<std::string> GetValues |
( |
const std::string & |
param | ) |
const |
|
inline |
Get the values as list associated with this parameter of these HTTP headers.
- Parameters
-
[in] | param | The name of the parameter values are required for |
- Returns
- The values found
◆ GetHeader()
std::string GetHeader |
( |
| ) |
const |
|
inline |
Get the full header string associated with these HTTP headers.
- Returns
- The header as a string
◆ GetMimeType()
std::string GetMimeType |
( |
| ) |
const |
|
inline |
Get the mime type associated with these HTTP headers.
- Returns
- The mime type
◆ GetCharset()
std::string GetCharset |
( |
| ) |
const |
|
inline |
Get the charset associated with these HTTP headers.
- Returns
- The charset
◆ GetProtoLine()
std::string GetProtoLine |
( |
| ) |
const |
|
inline |
The protocol line associated with these HTTP headers.
- Returns
- The protocol line