public interface HttpHeader
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
name()
Returns a string that represents the HTTP header name.
|
static HttpHeader |
of(java.lang.String name,
java.lang.String value)
Returns an instance of the
HttpHeader with the given name and value . |
default java.lang.String |
value()
Returns a string that represents the HTTP header value.
|
static HttpHeader of(java.lang.String name, java.lang.String value)
HttpHeader
with the given name
and value
.name
- the name of the HTTP headervalue
- the value of the HTTP headerjava.lang.IllegalArgumentException
- when name
is empty or blankjava.lang.IllegalArgumentException
- when value
is empty or blankdefault java.lang.String name()
default java.lang.String value()