Package com.teamdev.jxbrowser.net
Interface HttpHeader
public interface HttpHeader
An HTTP header.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
name()
Returns a string that represents the HTTP header name.static HttpHeader
Returns an instance of theHttpHeader
with the givenname
andvalue
.default String
value()
Returns a string that represents the HTTP header value.
-
Method Details
-
of
Returns an instance of theHttpHeader
with the givenname
andvalue
.- Parameters:
name
- the name of the HTTP headervalue
- the value of the HTTP header- Throws:
IllegalArgumentException
- whenname
is empty or blank
-
name
Returns a string that represents the HTTP header name. -
value
Returns a string that represents the HTTP header value.
-