public final class HttpHeader extends Object
| Constructor and Description |
|---|
HttpHeader() |
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Get the name property: The name in HTTP header.
|
void |
validate()
Validates the instance.
|
String |
value()
Get the value property: The value in HTTP header.
|
HttpHeader |
withName(String name)
Set the name property: The name in HTTP header.
|
HttpHeader |
withValue(String value)
Set the value property: The value in HTTP header.
|
public String name()
public HttpHeader withName(String name)
name - the name value to set.public String value()
public HttpHeader withValue(String value)
value - the value value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.