public static class HTTPServer.Header extends Object
Header class encapsulates a single HTTP header.| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected String |
value |
| Constructor and Description |
|---|
Header(String name,
String value)
Constructs a header with the given name and value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns this header's name.
|
String |
getValue()
Returns this header's value.
|
public Header(String name, String value)
name - the header namevalue - the header valueNullPointerException - if name or value is nullIllegalArgumentException - if name is emptyCopyright © 2021 freeutils.net. All rights reserved.