Package com.teamdev.jxbrowser.net
Interface HttpHeader
public interface HttpHeader
An HTTP header.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringname()Returns a string that represents the HTTP header name.static HttpHeaderReturns an instance of theHttpHeaderwith the givennameandvalue.default Stringvalue()Returns a string that represents the HTTP header value.
-
Method Details
-
of
Returns an instance of theHttpHeaderwith the givennameandvalue.- Parameters:
name- the name of the HTTP headervalue- the value of the HTTP header- Throws:
IllegalArgumentException- whennameis empty or blank
-
name
Returns a string that represents the HTTP header name. -
value
Returns a string that represents the HTTP header value.
-