Interface Header

All Superinterfaces:
NameValuePair
All Known Subinterfaces:
FormattedHeader
All Known Implementing Classes:
BasicHeader, BufferedHeader, HPackHeader

public interface Header extends NameValuePair
Represents an HTTP header field consisting of a field name and a field value.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the header should be considered sensitive.

    Methods inherited from interface org.apache.hc.core5.http.NameValuePair

    getName, getValue
  • Method Details

    • isSensitive

      boolean isSensitive()
      Returns true if the header should be considered sensitive.

      Some encoding schemes such as HPACK impose restrictions on encoded representation of sensitive headers.

      Returns:
      true if the header should be considered sensitive.
      Since:
      5.0