All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.core.http.HttpHeader Maven / Gradle / Ivy

There is a newer version: 1.54.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.core.http;

import com.azure.core.util.Header;

import java.util.List;

/**
 * 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. */ public class HttpHeader extends Header { /** * Create an HttpHeader instance using the provided name and value. * * @param name the name * @param value the value */ public HttpHeader(String name, String value) { super(name, value); } /** * 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. * * @param name the name * @param values the values */ public HttpHeader(String name, List values) { super(name, values); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy