Check if the name of this header is the same as the given one.
Check if the name of this header is the same as the given one. The names are compared in a case-insensitive way.
Representation in the format: [name]: [value]
.
Representation in the format: [name]: [value]
. If the header is sensitive (see
HeaderNames.SensitiveHeaders), the value is omitted.
(Since version ) see corresponding Javadoc for more information.
An HTTP header. The name property is case-insensitive during equality checks.
To compare if two headers have the same name, use the is method, which does a case-insensitive check, instead of comparing the name property.
The name and value should be already encoded (if necessary), as when serialised, they end up unmodified in the header.