public class HTTPHeader implements SerializableHTTPHeader can represent either an HTTP request header, or
an HTTP response header.
Implements
SerializableConstructors
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 |
Stringa not |
value |
Stringmay be a single value or a comma-separated list of values
for multivalued headers such as |
Methods
getName()
public String getName()| Returns | |
|---|---|
| Type | Description |
String |
|
getValue()
public String getValue()| Returns | |
|---|---|
| Type | Description |
String |
|