A class representing an HTTP header and its value.
More...
#include <luciad/net/http/HttpHeader.h>
A class representing an HTTP header and its value.
HttpHeader instances are immutable.
- Since
- 2023.0
◆ HttpHeader()
luciad::HttpHeader::HttpHeader |
( |
std::string |
name, |
|
|
std::string |
value |
|
) |
| |
Creates a HTTP header with the given name and value.
- Parameters
-
name | the HTTP header name. |
value | the HTTP header value. |
◆ getName()
const std::string & luciad::HttpHeader::getName |
( |
| ) |
const |
Returns the name of this HTTP header.
- Returns
- the name of this HTTP header.
◆ getValue()
const std::string & luciad::HttpHeader::getValue |
( |
| ) |
const |
Returns the value of this HTTP header.
- Returns
- the value of this HTTP header.
◆ operator!=()
bool luciad::HttpHeader::operator!= |
( |
const HttpHeader & |
other | ) |
const |
◆ operator==()
bool luciad::HttpHeader::operator== |
( |
const HttpHeader & |
other | ) |
const |