LuciadCPillar 2024.0.08
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
luciad::HttpHeader Class Referencefinal

A class representing an HTTP header and its value. More...

#include <luciad/net/http/HttpHeader.h>

Public Member Functions

 HttpHeader (std::string name, std::string value)
 Creates a HTTP header with the given name and value. More...
 
const std::string & getName () const
 Returns the name of this HTTP header. More...
 
const std::string & getValue () const
 Returns the value of this HTTP header. More...
 
bool operator!= (const HttpHeader &other) const
 
bool operator== (const HttpHeader &other) const
 

Detailed Description

A class representing an HTTP header and its value.

HttpHeader instances are immutable.

Since
2023.0

Constructor & Destructor Documentation

◆ HttpHeader()

luciad::HttpHeader::HttpHeader ( std::string  name,
std::string  value 
)

Creates a HTTP header with the given name and value.

Parameters
namethe HTTP header name.
valuethe HTTP header value.

Member Function Documentation

◆ 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