|
6 | 6 | //! Notably you'll find `Uri` for what a [`Request`] is requesting, a [`Method`]
|
7 | 7 | //! for how it's being requested, a [`StatusCode`] for what sort of response came
|
8 | 8 | //! back, a [`Version`] for how this was communicated, and
|
9 |
| -//! [`HeaderName`][header::HeaderName]/[`HeaderValue`][header::HeaderName] definitions to get grouped in a [`HeaderMap`] to |
| 9 | +//! [`HeaderName`]/[`HeaderValue`] definitions to get grouped in a [`HeaderMap`] to |
10 | 10 | //! work with request/response headers.
|
11 | 11 | //!
|
12 | 12 | //! You will notably *not* find an implementation of sending requests or
|
|
87 | 87 | //! Accept: text/html
|
88 | 88 | //! ```
|
89 | 89 | //!
|
90 |
| -//! Then `"Accept"` is a [`HeaderName`][header::HeaderName] while `"text/html"` is a [`HeaderValue`][header::HeaderValue]. |
| 90 | +//! Then `"Accept"` is a [`HeaderName`] while `"text/html"` is a [`HeaderValue`]. |
91 | 91 | //! Each of these is a dedicated type to allow for a number of interesting
|
92 | 92 | //! optimizations and to also encode the static guarantees of each type. For
|
93 |
| -//! example a [`HeaderName`][header::HeaderName] is always a valid `&str`, but a [`HeaderValue`] may |
| 93 | +//! example a [`HeaderName`] is always a valid `&str`, but a [`HeaderValue`] may |
94 | 94 | //! not be valid UTF-8.
|
95 | 95 | //!
|
96 | 96 | //! The most common header names are already defined for you as constant values
|
|
134 | 134 | //! Most HTTP requests and responses tend to come with more than one header, so
|
135 | 135 | //! it's not too useful to just work with names and values only! This crate also
|
136 | 136 | //! provides a [`HeaderMap`] type which is a specialized hash map for keys as
|
137 |
| -//! [`HeaderName`][header::HeaderName] and generic values. This type, like header names, is optimized |
| 137 | +//! [`HeaderName`] and generic values. This type, like header names, is optimized |
138 | 138 | //! for common usage but should continue to scale with your needs over time.
|
139 | 139 | //!
|
140 | 140 | //! # URIs
|
|
0 commit comments