Class HttpHeader


  • public class HttpHeader
    extends Object
    An HTTP header name-value pair.
    • Constructor Detail

      • HttpHeader

        public HttpHeader()
    • Method Detail

      • name

        public String name()
        Get the name value.
        Returns:
        the name value
      • withName

        public HttpHeader withName​(String name)
        Set the name value.
        Parameters:
        name - the name value to set
        Returns:
        the HttpHeader object itself.
      • value

        public String value()
        Get the value value.
        Returns:
        the value value
      • withValue

        public HttpHeader withValue​(String value)
        Set the value value.
        Parameters:
        value - the value value to set
        Returns:
        the HttpHeader object itself.