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