|
57 | 57 | import org.springframework.util.StringUtils; |
58 | 58 |
|
59 | 59 | /** |
60 | | - * A data structure representing HTTP request or response headers, mapping String header names |
61 | | - * to a list of String values, also offering accessors for common application-level data types. |
| 60 | + * A data structure representing HTTP request or response headers, mapping String |
| 61 | + * header names to a list of String values and also offering accessors for common |
| 62 | + * application-level data types. |
62 | 63 | * |
63 | | - * <p>In addition to the regular methods defined by {@link Map}, this class offers many common |
64 | | - * convenience methods, for example: |
| 64 | + * <p>This class offers many common convenience methods, for example: |
65 | 65 | * <ul> |
66 | 66 | * <li>{@link #getFirst(String)} returns the first value associated with a given header name</li> |
67 | 67 | * <li>{@link #add(String, String)} adds a header value to the list of values for a header name</li> |
68 | 68 | * <li>{@link #set(String, String)} sets the header value to a single string value</li> |
69 | 69 | * </ul> |
70 | 70 | * |
71 | 71 | * <p>Note that {@code HttpHeaders} instances created by the default constructor |
72 | | - * treat header names in a case-insensitive manner. Instances created with the |
73 | | - * {@link #HttpHeaders(MultiValueMap)} constructor like those instantiated |
| 72 | + * treat header names in a case-insensitive manner; whereas, instances created with |
| 73 | + * the {@link #HttpHeaders(MultiValueMap)} constructor — like those instantiated |
74 | 74 | * internally by the framework to adapt to existing HTTP headers data structures |
75 | | - * do guarantee per-header get/set/add operations to be case-insensitive as |
| 75 | + * — guarantee per-header get/set/add operations to be case-insensitive as |
76 | 76 | * mandated by the HTTP specification. However, it is not necessarily how |
77 | | - * entries are actually stored, and this can lead to the reported {@code size()} |
| 77 | + * entries are actually stored, and this can lead to the reported {@link #size()} |
78 | 78 | * being inflated. Prefer using {@link #headerSet()} or {@link #headerNames()} |
79 | 79 | * to ensure a case-insensitive view. |
80 | 80 | * |
81 | 81 | * <p>This class is meant to reference "well-known" headers supported by Spring |
82 | 82 | * Framework. If your application or library relies on other headers defined in RFCs, |
83 | 83 | * please use methods that accept the header name as a parameter. |
84 | 84 | * |
85 | | - * <p>Since 7.0, this class no longer implements the {@code MultiValueMap} |
86 | | - * contract. |
| 85 | + * <p>Since 7.0, this class no longer implements the {@code MultiValueMap} contract. |
87 | 86 | * |
88 | 87 | * @author Arjen Poutsma |
89 | 88 | * @author Sebastien Deleuze |
|
0 commit comments