Class HttpHeader

java.lang.Object
org.eclipse.rdf4j.http.client.spi.HttpHeader

public final class HttpHeader extends Object
An immutable HTTP header name/value pair.
  • Method Details

    • of

      public static HttpHeader of(String name, String value)
      Creates a new HttpHeader with the given name and value.
      Parameters:
      name - the header name; must not be null
      value - the header value; must not be null
      Returns:
      a new HttpHeader
    • getName

      public String getName()
      Returns the header name.
      Returns:
      the header name; never null
    • getValue

      public String getValue()
      Returns the header value.
      Returns:
      the header value; never null
    • toString

      public String toString()
      Overrides:
      toString in class Object