public final class HttpHeader extends Object implements AutoCloseable
HttpHeader
instances are immutable.
Constructor and Description |
---|
HttpHeader(String name,
String value)
Creates a HTTP header with the given name and value.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object other) |
protected void |
finalize() |
String |
getName()
Returns the name of this HTTP header.
|
String |
getValue()
Returns the value of this HTTP header.
|
int |
hashCode() |
String |
toString() |
public void close()
close
in interface AutoCloseable
@NotNull public String getName()
@NotNull public String getValue()