Rocket/lib/src/response/mod.rs

27 lines
697 B
Rust
Raw Normal View History

//! Types and traits to build and send responses.
//!
//! The return type of a Rocket handler can be any type that implements the
//! [Responder](trait.Responder.html) trait. This module contains several useful
//! types that implement this trait.
mod responder;
mod redirect;
mod with_status;
mod flash;
2016-09-12 08:51:02 +00:00
mod named_file;
2016-09-12 09:43:34 +00:00
mod stream;
mod response;
mod failure;
pub mod content;
pub use self::response::Response;
pub use self::responder::{Outcome, Responder};
pub use self::redirect::Redirect;
pub use self::with_status::StatusResponse;
pub use self::flash::Flash;
2016-09-12 08:51:02 +00:00
pub use self::named_file::NamedFile;
2016-09-12 09:43:34 +00:00
pub use self::stream::Stream;
pub use self::content::Content;
pub use self::failure::Failure;