File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 8
8
//! The `mime` crate defines two major types for representing MIMEs in HTTP
9
9
//! contexts:
10
10
//!
11
- //! - A [`MediaType`](MediaType) is a concrete description of some content,
12
- //! such as `text/plain`.
13
- //! - A [`MediaRange`](MediaRange) is a range of types that an agent is willing
14
- //! to receive, such as `text/*`.
11
+ //! - A [`MediaType`] is a concrete description of some content, such as
12
+ //! `text/plain`.
13
+ //! - A [`MediaRange`] is a range of types that an agent is willing to receive,
14
+ //! such as `text/*`.
15
15
//!
16
16
//! ## Getting a `MediaType`
17
17
//!
24
24
//! // etc
25
25
//! ```
26
26
//!
27
- //! A [`MediaType`](MediaType) can also be parsed from a string, such as from
28
- //! a `Content-Type` HTTP header:
27
+ //! A [`MediaType`] can also be parsed from a string, such as from a
28
+ //! `Content-Type` HTTP header:
29
29
//!
30
30
//! ```
31
31
//! match mime::MediaType::parse("text/plain; charset=utf-8") {
52
52
//!
53
53
//! ## Using Media Ranges for matching
54
54
//!
55
- //! [`MediaRange`](MediaRange) s are often used by agents to declare a "range"
56
- //! of media types that they can understand. A common place to find these is
57
- //! `Accept` HTTP header, perhaps like this:
55
+ //! [`MediaRange`]s are often used by agents to declare a "range" of media
56
+ //! types that they can understand. A common place to find these is `Accept`
57
+ //! HTTP header, perhaps like this:
58
58
//!
59
59
//! ```http
60
60
//! GET /index.html HTTP/1.1
You can’t perform that action at this time.
0 commit comments