Skip to content

Commit ce57d4a

Browse files
committed
Revised HttpHeaders javadoc
1 parent 7377764 commit ce57d4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spring-web/src/main/java/org/springframework/http/HttpHeaders.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,17 @@
4949
import org.springframework.util.StringUtils;
5050

5151
/**
52-
* Represents HTTP request and response headers, mapping string header names to a list of string values.
52+
* A data structure representing HTTP request or response headers, mapping String header names
53+
* to a list of String values, also offering accessors for common application-level data types.
5354
*
54-
* <p>In addition to the normal methods defined by {@link Map}, this class offers the following
55-
* convenience methods:
55+
* <p>In addition to the regular methods defined by {@link Map}, this class offers many common
56+
* convenience methods, for example:
5657
* <ul>
5758
* <li>{@link #getFirst(String)} returns the first value associated with a given header name</li>
5859
* <li>{@link #add(String, String)} adds a header value to the list of values for a header name</li>
5960
* <li>{@link #set(String, String)} sets the header value to a single string value</li>
6061
* </ul>
6162
*
62-
* <p>Inspired by {@code com.sun.net.httpserver.Headers}.
63-
*
6463
* @author Arjen Poutsma
6564
* @author Sebastien Deleuze
6665
* @author Brian Clozel
@@ -376,7 +375,8 @@ public class HttpHeaders implements MultiValueMap<String, String>, Serializable
376375

377376

378377
/**
379-
* The empty {@code HttpHeaders} instance (immutable).
378+
* An empty {@code HttpHeaders} instance (immutable).
379+
* @since 5.0
380380
*/
381381
public static final HttpHeaders EMPTY = new HttpHeaders(new LinkedHashMap<>(), true);
382382

0 commit comments

Comments
 (0)