Class HTTPHeader (2.0.0)

public class HTTPHeader implements Serializable

HTTPHeader can represent either an HTTP request header, or an HTTP response header.

Inheritance

java.lang.Object > HTTPHeader

Implements

Serializable

Constructors

HTTPHeader(String name, String value)

public HTTPHeader(String name, String value)

Creates a new header with the specified name and value.

Parameters
Name Description
name String

a not null name

value String

may be a single value or a comma-separated list of values for multivalued headers such as Accept or Set-Cookie.

Methods

getName()

public String getName()
Returns
Type Description
String

getValue()

public String getValue()
Returns
Type Description
String