Skip to content

Commit 57ef271

Browse files
committed
docs(lib): fix broken intra docs links
1 parent bdca499 commit 57ef271

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

src/body/body.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Body {
160160

161161
/// Converts this `Body` into a `Future` of a pending HTTP upgrade.
162162
///
163-
/// See [the `upgrade` module](::upgrade) for more.
163+
/// See [the `upgrade` module](crate::upgrade) for more.
164164
pub fn on_upgrade(self) -> OnUpgrade {
165165
self.extra
166166
.map(|ex| ex.on_upgrade)
@@ -496,7 +496,7 @@ impl Sender {
496496
///
497497
/// This is mostly useful for when trying to send from some other thread
498498
/// that doesn't have an async context. If in an async context, prefer
499-
/// [`send_data`][] instead.
499+
/// `send_data()` instead.
500500
pub fn try_send_data(&mut self, chunk: Bytes) -> Result<(), Bytes> {
501501
self.tx
502502
.try_send(Ok(chunk))

src/body/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Streaming bodies for Requests and Responses
22
//!
3-
//! For both [Clients](::client) and [Servers](::server), requests and
3+
//! For both [Clients](crate::client) and [Servers](crate::server), requests and
44
//! responses use streaming bodies, instead of complete buffering. This
55
//! allows applications to not use memory they don't need, and allows exerting
66
//! back-pressure on connections by only reading when asked.
77
//!
88
//! There are two pieces to this in hyper:
99
//!
10-
//! - **The [`HttpBody`](body::HttpBody) trait** describes all possible bodies.
10+
//! - **The [`HttpBody`](HttpBody) trait** describes all possible bodies.
1111
//! hyper allows any body type that implements `HttpBody`, allowing
1212
//! applications to have fine-grained control over their streaming.
1313
//! - **The [`Body`](Body) concrete type**, which is an implementation of

src/client/connect/dns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! This module contains:
44
//!
5-
//! - A [`GaiResolver`](dns::GaiResolver) that is the default resolver for the
5+
//! - A [`GaiResolver`](GaiResolver) that is the default resolver for the
66
//! `HttpConnector`.
77
//! - The `Name` type used as an argument to custom resolvers.
88
//!

src/client/connect/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@
6767
//! ```
6868
//!
6969
//!
70-
//! [`HttpConnector`]: hyper::client::HttpConnector
71-
//! [`Service`]: hyper::service::Service
70+
//! [`HttpConnector`]: HttpConnector
71+
//! [`Service`]: crate::service::Service
7272
//! [`Uri`]: http::Uri
7373
//! [`AsyncRead`]: tokio::io::AsyncRead
7474
//! [`AsyncWrite`]: tokio::io::AsyncWrite
75-
//! [`Connection`]: hyper::client::connect::Connection
75+
//! [`Connection`]: Connection
7676
use std::fmt;
7777

7878
use ::http::Response;

src/client/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! There are two levels of APIs provided for construct HTTP clients:
44
//!
55
//! - The higher-level [`Client`](Client) type.
6-
//! - The lower-level [`conn`](client::conn) module.
6+
//! - The lower-level [`conn`](conn) module.
77
//!
88
//! # Client
99
//!

src/server/conn.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ impl<E> Http<E> {
351351
}
352352
}
353353

354-
/// Bind a connection together with a [`Service`](::service::Service).
354+
/// Bind a connection together with a [`Service`](crate::service::Service).
355355
///
356356
/// This returns a Future that must be polled in order for HTTP to be
357357
/// driven on the connection.
@@ -573,7 +573,7 @@ where
573573

574574
/// Enable this connection to support higher-level HTTP upgrades.
575575
///
576-
/// See [the `upgrade` module](::upgrade) for more.
576+
/// See [the `upgrade` module](crate::upgrade) for more.
577577
pub fn with_upgrades(self) -> UpgradeableConnection<I, S, E>
578578
where
579579
I: Send,

src/server/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
//! There are two levels of APIs provide for constructing HTTP servers:
77
//!
88
//! - The higher-level [`Server`](Server) type.
9-
//! - The lower-level [`conn`](server::conn) module.
9+
//! - The lower-level [`conn`](conn) module.
1010
//!
1111
//! # Server
1212
//!
1313
//! 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
1515
//! be executed to start serving requests.
1616
//!
1717
//! [`Server`](Server) accepts connections in both HTTP1 and HTTP2 by default.

src/service/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Asynchronous Services
22
//!
3-
//! A [`Service`](service::Service) is a trait representing an asynchronous
3+
//! A [`Service`](Service) is a trait representing an asynchronous
44
//! function of a request to a response. It's similar to
55
//! `async fn(Request) -> Result<Response, Error>`.
66
//!
@@ -22,11 +22,11 @@
2222
//! connection will receive.
2323
//!
2424
//! 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.
2626
//!
2727
//! # MakeService
2828
//!
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)
3030
//! needs a way to make them as it accepts connections. This is what a
3131
//! `MakeService` does.
3232
//!

0 commit comments

Comments
 (0)