Skip to content

Commit 18f022c

Browse files
committed
docs(lib): fix several broken links throughout docs
Closes #1749 Closes #1750
1 parent 9aa7e99 commit 18f022c

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

src/body/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//!
88
//! There are two pieces to this in hyper:
99
//!
10-
//! - The [`Payload`](Payload) trait the describes all possible bodies. hyper
10+
//! - The [`Payload`](body::Payload) trait the describes all possible bodies. hyper
1111
//! allows any body type that implements `Payload`, allowing applications to
1212
//! have fine-grained control over their streaming.
1313
//! - The [`Body`](Body) concrete type, which is an implementation of `Payload`,

src/body/payload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::internal::{FullDataArg, FullDataRet};
66

77
/// This trait represents a streaming body of a `Request` or `Response`.
88
///
9-
/// The built-in implementation of this trait is [`Body`](Body), in case you
9+
/// The built-in implementation of this trait is [`Body`](::Body), in case you
1010
/// don't need to customize a send stream for your own application.
1111
pub trait Payload: Send + 'static {
1212
/// A buffer of bytes representing a single chunk of a body.

src/client/connect/dns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//!
33
//! This module contains:
44
//!
5-
//! - A [`GaiResolver`](GaiResolver) that is the default resolver for the
5+
//! - A [`GaiResolver`](dns::GaiResolver) that is the default resolver for the
66
//! `HttpConnector`.
7-
//! - The [`Resolve`](Resolve) trait and related types to build a custom
7+
//! - The [`Resolve`](dns::Resolve) trait and related types to build a custom
88
//! resolver for use with the `HttpConnector`.
99
use std::{fmt, io, vec};
1010
use std::error::Error;

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
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](conn) module.
6+
//! - The lower-level [`conn`](client::conn) module.
77
//!
88
//! # Client
99
//!

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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](conn) module.
9+
//! - The lower-level [`conn`](server::conn) module.
1010
//!
1111
//! # Server
1212
//!

src/service/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Services and MakeServices
22
//!
3-
//! - A [`Service`](Service) is a trait representing an asynchronous function
4-
//! of a request to a response. It's similar to
3+
//! - A [`Service`](service::Service) is a trait representing an asynchronous
4+
//! function of a request to a response. It's similar to
55
//! `async fn(Request) -> Result<Response, Error>`.
6-
//! - A [`MakeService`](MakeService) is a trait creating specific instances of a
7-
//! `Service`.
6+
//! - A [`MakeService`](service::MakeService) is a trait creating specific
7+
//! instances of a `Service`.
88
//!
99
//! These types are conceptually similar to those in
1010
//! [tower](https://crates.io/crates/tower), while being specific to hyper.
@@ -16,8 +16,9 @@
1616
//! connection will receive.
1717
//!
1818
//! While it's possible to implement `Service` for a type manually, the helpers
19-
//! [`service_fn`](service_fn) and [`service_fn_ok`](service_fn_ok) should be
20-
//! sufficient for most cases.
19+
//! [`service_fn`](service::service_fn) and
20+
//! [`service_fn_ok`](service::service_fn_ok) should be sufficient for most
21+
//! cases.
2122
//!
2223
//! # MakeService
2324
//!

0 commit comments

Comments
 (0)