public class Header extends Object
If multiple header values are added to a request with the same name (case-insensitive), then the values will be
appended at the end of the same Header with commas separating them.
| Constructor and Description |
|---|
Header(String name,
String value)
Create a Header instance using the provided name and value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String value)
Add a new value to the end of the Header.
|
String |
getName()
Gets the header name.
|
String |
getValue()
Gets the value of this
Header. |
String[] |
getValues()
Gets the comma separated value as an array.
|
String |
toString()
Gets the String representation of the header.
|
public Header(String name, String value)
name - the name of the header.value - the value of the header.NullPointerException - if name is null.Copyright © 2020 Microsoft Corporation. All rights reserved.