File tree 8 files changed +16
-16
lines changed
8 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl Body {
160
160
161
161
/// Converts this `Body` into a `Future` of a pending HTTP upgrade.
162
162
///
163
- /// See [the `upgrade` module](::upgrade) for more.
163
+ /// See [the `upgrade` module](crate ::upgrade) for more.
164
164
pub fn on_upgrade ( self ) -> OnUpgrade {
165
165
self . extra
166
166
. map ( |ex| ex. on_upgrade )
@@ -496,7 +496,7 @@ impl Sender {
496
496
///
497
497
/// This is mostly useful for when trying to send from some other thread
498
498
/// that doesn't have an async context. If in an async context, prefer
499
- /// [ `send_data`][] instead.
499
+ /// `send_data()` instead.
500
500
pub fn try_send_data ( & mut self , chunk : Bytes ) -> Result < ( ) , Bytes > {
501
501
self . tx
502
502
. try_send ( Ok ( chunk) )
Original file line number Diff line number Diff line change 1
1
//! Streaming bodies for Requests and Responses
2
2
//!
3
- //! For both [Clients](::client) and [Servers](::server), requests and
3
+ //! For both [Clients](crate ::client) and [Servers](crate ::server), requests and
4
4
//! responses use streaming bodies, instead of complete buffering. This
5
5
//! allows applications to not use memory they don't need, and allows exerting
6
6
//! back-pressure on connections by only reading when asked.
7
7
//!
8
8
//! There are two pieces to this in hyper:
9
9
//!
10
- //! - **The [`HttpBody`](body:: HttpBody) trait** describes all possible bodies.
10
+ //! - **The [`HttpBody`](HttpBody) trait** describes all possible bodies.
11
11
//! hyper allows any body type that implements `HttpBody`, allowing
12
12
//! applications to have fine-grained control over their streaming.
13
13
//! - **The [`Body`](Body) concrete type**, which is an implementation of
Original file line number Diff line number Diff line change 2
2
//!
3
3
//! This module contains:
4
4
//!
5
- //! - A [`GaiResolver`](dns:: GaiResolver) that is the default resolver for the
5
+ //! - A [`GaiResolver`](GaiResolver) that is the default resolver for the
6
6
//! `HttpConnector`.
7
7
//! - The `Name` type used as an argument to custom resolvers.
8
8
//!
Original file line number Diff line number Diff line change 67
67
//! ```
68
68
//!
69
69
//!
70
- //! [`HttpConnector`]: hyper::client:: HttpConnector
71
- //! [`Service`]: hyper ::service::Service
70
+ //! [`HttpConnector`]: HttpConnector
71
+ //! [`Service`]: crate ::service::Service
72
72
//! [`Uri`]: http::Uri
73
73
//! [`AsyncRead`]: tokio::io::AsyncRead
74
74
//! [`AsyncWrite`]: tokio::io::AsyncWrite
75
- //! [`Connection`]: hyper::client::connect:: Connection
75
+ //! [`Connection`]: Connection
76
76
use std:: fmt;
77
77
78
78
use :: http:: Response ;
Original file line number Diff line number Diff line change 3
3
//! There are two levels of APIs provided for construct HTTP clients:
4
4
//!
5
5
//! - The higher-level [`Client`](Client) type.
6
- //! - The lower-level [`conn`](client:: conn) module.
6
+ //! - The lower-level [`conn`](conn) module.
7
7
//!
8
8
//! # Client
9
9
//!
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ impl<E> Http<E> {
351
351
}
352
352
}
353
353
354
- /// Bind a connection together with a [`Service`](::service::Service).
354
+ /// Bind a connection together with a [`Service`](crate ::service::Service).
355
355
///
356
356
/// This returns a Future that must be polled in order for HTTP to be
357
357
/// driven on the connection.
@@ -573,7 +573,7 @@ where
573
573
574
574
/// Enable this connection to support higher-level HTTP upgrades.
575
575
///
576
- /// See [the `upgrade` module](::upgrade) for more.
576
+ /// See [the `upgrade` module](crate ::upgrade) for more.
577
577
pub fn with_upgrades ( self ) -> UpgradeableConnection < I , S , E >
578
578
where
579
579
I : Send ,
Original file line number Diff line number Diff line change 6
6
//! There are two levels of APIs provide for constructing HTTP servers:
7
7
//!
8
8
//! - The higher-level [`Server`](Server) type.
9
- //! - The lower-level [`conn`](server:: conn) module.
9
+ //! - The lower-level [`conn`](conn) module.
10
10
//!
11
11
//! # Server
12
12
//!
13
13
//! The [`Server`](Server) is main way to start listening for HTTP requests.
14
- //! It wraps a listener with a [`MakeService`](::service), and then should
14
+ //! It wraps a listener with a [`MakeService`](crate ::service), and then should
15
15
//! be executed to start serving requests.
16
16
//!
17
17
//! [`Server`](Server) accepts connections in both HTTP1 and HTTP2 by default.
Original file line number Diff line number Diff line change 1
1
//! Asynchronous Services
2
2
//!
3
- //! A [`Service`](service:: Service) is a trait representing an asynchronous
3
+ //! A [`Service`](Service) is a trait representing an asynchronous
4
4
//! function of a request to a response. It's similar to
5
5
//! `async fn(Request) -> Result<Response, Error>`.
6
6
//!
22
22
//! connection will receive.
23
23
//!
24
24
//! While it's possible to implement `Service` for a type manually, the helper
25
- //! [`service_fn`](service:: service_fn) should be sufficient for most cases.
25
+ //! [`service_fn`](service_fn) should be sufficient for most cases.
26
26
//!
27
27
//! # MakeService
28
28
//!
29
- //! Since a `Service` is bound to a single connection, a [`Server`](::Server)
29
+ //! Since a `Service` is bound to a single connection, a [`Server`](crate ::Server)
30
30
//! needs a way to make them as it accepts connections. This is what a
31
31
//! `MakeService` does.
32
32
//!
You can’t perform that action at this time.
0 commit comments