Class HttpHeader


  • public class HttpHeader
    extends Object
    Represents an HTTP header with a name and a value.
    • Constructor Detail

      • HttpHeader

        public HttpHeader​(String name,
                          String value)
        Constructs an HttpHeader object with the specified name and value.
        Parameters:
        name - the name of the HTTP header
        value - the value of the HTTP header
    • Method Detail

      • getName

        public String getName()
        Returns the name of this HTTP header.
        Returns:
        the name of this HTTP header
      • getValue

        public String getValue()
        Returns the value of this HTTP header.
        Returns:
        the value of this HTTP header
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object