docs(lib): fix broken intra docs links

This commit is contained in:
Sean McArthur
2019-12-11 13:12:24 -08:00
parent bdca4992fc
commit 57ef271500
8 changed files with 16 additions and 16 deletions

View File

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

View File

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

View File

@@ -2,7 +2,7 @@
//! //!
//! This module contains: //! This module contains:
//! //!
//! - A [`GaiResolver`](dns::GaiResolver) that is the default resolver for the //! - A [`GaiResolver`](GaiResolver) that is the default resolver for the
//! `HttpConnector`. //! `HttpConnector`.
//! - The `Name` type used as an argument to custom resolvers. //! - The `Name` type used as an argument to custom resolvers.
//! //!

View File

@@ -67,12 +67,12 @@
//! ``` //! ```
//! //!
//! //!
//! [`HttpConnector`]: hyper::client::HttpConnector //! [`HttpConnector`]: HttpConnector
//! [`Service`]: hyper::service::Service //! [`Service`]: crate::service::Service
//! [`Uri`]: http::Uri //! [`Uri`]: http::Uri
//! [`AsyncRead`]: tokio::io::AsyncRead //! [`AsyncRead`]: tokio::io::AsyncRead
//! [`AsyncWrite`]: tokio::io::AsyncWrite //! [`AsyncWrite`]: tokio::io::AsyncWrite
//! [`Connection`]: hyper::client::connect::Connection //! [`Connection`]: Connection
use std::fmt; use std::fmt;
use ::http::Response; use ::http::Response;

View File

@@ -3,7 +3,7 @@
//! There are two levels of APIs provided for construct HTTP clients: //! There are two levels of APIs provided for construct HTTP clients:
//! //!
//! - The higher-level [`Client`](Client) type. //! - The higher-level [`Client`](Client) type.
//! - The lower-level [`conn`](client::conn) module. //! - The lower-level [`conn`](conn) module.
//! //!
//! # Client //! # Client
//! //!

View File

@@ -351,7 +351,7 @@ impl<E> Http<E> {
} }
} }
/// Bind a connection together with a [`Service`](::service::Service). /// Bind a connection together with a [`Service`](crate::service::Service).
/// ///
/// This returns a Future that must be polled in order for HTTP to be /// This returns a Future that must be polled in order for HTTP to be
/// driven on the connection. /// driven on the connection.
@@ -573,7 +573,7 @@ where
/// Enable this connection to support higher-level HTTP upgrades. /// Enable this connection to support higher-level HTTP upgrades.
/// ///
/// See [the `upgrade` module](::upgrade) for more. /// See [the `upgrade` module](crate::upgrade) for more.
pub fn with_upgrades(self) -> UpgradeableConnection<I, S, E> pub fn with_upgrades(self) -> UpgradeableConnection<I, S, E>
where where
I: Send, I: Send,

View File

@@ -6,12 +6,12 @@
//! There are two levels of APIs provide for constructing HTTP servers: //! There are two levels of APIs provide for constructing HTTP servers:
//! //!
//! - The higher-level [`Server`](Server) type. //! - The higher-level [`Server`](Server) type.
//! - The lower-level [`conn`](server::conn) module. //! - The lower-level [`conn`](conn) module.
//! //!
//! # Server //! # Server
//! //!
//! The [`Server`](Server) is main way to start listening for HTTP requests. //! The [`Server`](Server) is main way to start listening for HTTP requests.
//! It wraps a listener with a [`MakeService`](::service), and then should //! It wraps a listener with a [`MakeService`](crate::service), and then should
//! be executed to start serving requests. //! be executed to start serving requests.
//! //!
//! [`Server`](Server) accepts connections in both HTTP1 and HTTP2 by default. //! [`Server`](Server) accepts connections in both HTTP1 and HTTP2 by default.

View File

@@ -1,6 +1,6 @@
//! Asynchronous Services //! Asynchronous Services
//! //!
//! A [`Service`](service::Service) is a trait representing an asynchronous //! A [`Service`](Service) is a trait representing an asynchronous
//! function of a request to a response. It's similar to //! function of a request to a response. It's similar to
//! `async fn(Request) -> Result<Response, Error>`. //! `async fn(Request) -> Result<Response, Error>`.
//! //!
@@ -22,11 +22,11 @@
//! connection will receive. //! connection will receive.
//! //!
//! While it's possible to implement `Service` for a type manually, the helper //! While it's possible to implement `Service` for a type manually, the helper
//! [`service_fn`](service::service_fn) should be sufficient for most cases. //! [`service_fn`](service_fn) should be sufficient for most cases.
//! //!
//! # MakeService //! # MakeService
//! //!
//! Since a `Service` is bound to a single connection, a [`Server`](::Server) //! Since a `Service` is bound to a single connection, a [`Server`](crate::Server)
//! needs a way to make them as it accepts connections. This is what a //! needs a way to make them as it accepts connections. This is what a
//! `MakeService` does. //! `MakeService` does.
//! //!