@ -1841,11 +1841,12 @@ public class HttpHeaders implements Serializable {
/ * *
/ * *
* Return this HttpHeaders as a { @code Map } with the first values for each
* Return this HttpHeaders as a { @code Map } with the first values for each
* header name .
* header name . This method is susceptible to include multiple
* casing variants of a given header name , see { @link # asMultiValueMap ( ) }
* javadoc .
* < p > The difference between this method and { @link # asSingleValueMap ( ) } is
* < p > The difference between this method and { @link # asSingleValueMap ( ) } is
* that this method returns a copy of the headers , whereas the latter
* that this method returns a copy of the headers , whereas the latter
* returns a view . This copy also ensures that collection - iterating methods
* returns a view .
* like { @code entrySet ( ) } are case - insensitive .
* @return a single value representation of these headers
* @return a single value representation of these headers
* /
* /
public Map < String , String > toSingleValueMap ( ) {
public Map < String , String > toSingleValueMap ( ) {
@ -1854,16 +1855,14 @@ public class HttpHeaders implements Serializable {
/ * *
/ * *
* Return this HttpHeaders as a { @code Map } with the first values for each
* Return this HttpHeaders as a { @code Map } with the first values for each
* header name .
* header name . This method is susceptible to include multiple
* < p > The difference between this method and { @link # toSingleValueMap ( ) } is
* that this method returns a view of the headers , whereas the latter
* returns a copy . This method is also susceptible to include multiple
* casing variants of a given header name , see { @link # asMultiValueMap ( ) }
* casing variants of a given header name , see { @link # asMultiValueMap ( ) }
* javadoc .
* javadoc .
* < p > The difference between this method and { @link # toSingleValueMap ( ) } is
* that this method returns a view of the headers , whereas the latter
* returns a copy .
* @return a single value representation of these headers
* @return a single value representation of these headers
* @deprecated in favor of { @link # toSingleValueMap ( ) } which performs a copy but
* @deprecated in favor of { @link # toSingleValueMap ( ) } which performs a copy
* ensures that collection - iterating methods like { @code entrySet ( ) } are
* case - insensitive
* /
* /
@Deprecated ( since = "7.0" , forRemoval = true )
@Deprecated ( since = "7.0" , forRemoval = true )
public Map < String , String > asSingleValueMap ( ) {
public Map < String , String > asSingleValueMap ( ) {