mirror of https://github.com/rwf2/Rocket.git
Tidy up broken links. Set 'html_root_url'.
This commit is contained in:
parent
f57d5146d3
commit
9a297f776b
|
@ -3,6 +3,9 @@
|
|||
#![cfg_attr(feature = "templates", feature(associated_consts))]
|
||||
#![cfg_attr(feature = "templates", feature(struct_field_attributes))]
|
||||
|
||||
// TODO: Version URLs.
|
||||
#![doc(html_root_url = "https://api.rocket.rs/rocket_contrib/")]
|
||||
|
||||
//! This crate contains officially sanctioned contributor libraries that provide
|
||||
//! functionality commonly used by Rocket applications.
|
||||
//!
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
#![plugin(pear_codegen)]
|
||||
|
||||
// TODO: Version URLs.
|
||||
#![doc(html_root_url = "https://api.rocket.rs/rocket/")]
|
||||
|
||||
//! # Rocket - Core API Documentation
|
||||
//!
|
||||
//! Hello, and welcome to the core Rocket API documentation!
|
||||
|
@ -92,10 +95,9 @@
|
|||
//!
|
||||
//! ## Testing
|
||||
//!
|
||||
//! Rocket includes a small testing library that can be used to test your Rocket
|
||||
//! application. For information on how to test your Rocket applications, see
|
||||
//! the [testing module](/rocket/testing) documentation.
|
||||
//!
|
||||
//! The [local](/rocket/local) module contains structures that are facilitate
|
||||
//! unit and itegration testing of a Rocket application. The [top-level `local`
|
||||
//! module documentation](/rocket/local) includes detailed examples.
|
||||
|
||||
#[macro_use] extern crate log;
|
||||
#[macro_use] extern crate pear;
|
||||
|
|
|
@ -86,7 +86,8 @@
|
|||
//! #[test]
|
||||
//! fn test_hello_world() {
|
||||
//! // Construct a client to use for dispatching requests.
|
||||
//! let client = Client::new(rocket::ignite().mount("/", routes![hello]));
|
||||
//! let rocket = rocket::ignite().mount("/", routes![hello]);
|
||||
//! let client = Client::new(rocket).expect("valid rocket instance");
|
||||
//!
|
||||
//! // Dispatch a request to 'GET /' and validate the response.
|
||||
//! let mut response = client.get("/").dispatch();
|
||||
|
|
|
@ -100,10 +100,10 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
|
|||
///
|
||||
/// * **Cookies**
|
||||
///
|
||||
/// Returns a borrow to the [Cookies](/rocket/http/type.Cookies.html) in the
|
||||
/// incoming request. Note that `Cookies` implements internal mutability, so
|
||||
/// a handle to `Cookies` allows you to get _and_ set cookies in the
|
||||
/// request.
|
||||
/// Returns a borrow to the [Cookies](/rocket/http/enum.Cookies.html) in
|
||||
/// the incoming request. Note that `Cookies` implements internal
|
||||
/// mutability, so a handle to `Cookies` allows you to get _and_ set cookies
|
||||
/// in the request.
|
||||
///
|
||||
/// _This implementation always returns successfully._
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue