Representation of a HTTP header name. More...
Public Member Functions | |
operator std::string_view () const | |
Return a std::string_view over the header name. | |
bool | operator== (const BString &other) const noexcept |
Compare the header name to a string. | |
bool | operator== (const FieldName &other) const noexcept |
bool | operator== (const std::string_view &other) const noexcept |
Representation of a HTTP header name.
As per the HTTP specification, header fields have a name. There are limitations to which characters are supported. As per the specification, header field names are case insensitive. This means that the content-encoding
is equal to Content-Encoding
or even COnTenT-ENcOdING
.
A header field name can never be empty.
BPrivate::Network::BHttpFields::FieldName::operator std::string_view | ( | ) | const |
Return a std::string_view
over the header name.
std::string_view
object over the header name.
|
noexcept |
Compare the header name to a string.
other | The other string to compare it to. |
The comparison is case-insensitive. So if this header name is set to Content-Encoding
, comparing it to content-encoding
will return true
.
true | The current header name is equal to the other name. |
false | The current header name is different from the other name. |
|
noexcept |
Compare the header name to a string. noexcept
other | The other string to compare it to. |
The comparison is case-insensitive. So if this header name is set to Content-Encoding
, comparing it to content-encoding
will return true
.
true | The current header name is equal to the other name. |
false | The current header name is different from the other name. |
|
noexcept |
Compare the header name to a string. noexcept
other | The other string to compare it to. |
The comparison is case-insensitive. So if this header name is set to Content-Encoding
, comparing it to content-encoding
will return true
.
true | The current header name is equal to the other name. |
false | The current header name is different from the other name. |