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