Class ResponseHeaders.Header

java.lang.Object
com.launchdarkly.eventsource.ResponseHeaders.Header
Enclosing interface:
ResponseHeaders

public static final class ResponseHeaders.Header extends Object
Represents a single HTTP header as a name-value pair.

Header names are case-insensitive according to the HTTP specification, but the original case is preserved in this representation.

Since:
4.2.0
  • Constructor Details

    • Header

      public Header(String name, String value)
      Creates a header with the given name and value.
      Parameters:
      name - the header name
      value - the header value
  • Method Details

    • getName

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

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

      public String toString()
      Overrides:
      toString in class Object