Package com.azure.core.http
Class HttpHeader
java.lang.Object
com.azure.core.util.Header
com.azure.core.http.HttpHeader
A single header within an HTTP request or response.
If multiple header values are added to an HTTP request or response with the same name (case-insensitive), then the values will be appended to the end of the same Header with commas separating them.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpHeader(String name, String value) Create an HttpHeader instance using the provided name and value.HttpHeader(String name, List<String> values) Create an HttpHeader instance using the provided name and values, resulting in a single HttpHeader instance with a single name and multiple values set within it. -
Method Summary
-
Constructor Details
-
HttpHeader
Create an HttpHeader instance using the provided name and value.- Parameters:
name- the namevalue- the value
-
HttpHeader
Create an HttpHeader instance using the provided name and values, resulting in a single HttpHeader instance with a single name and multiple values set within it.- Parameters:
name- the namevalues- the values
-