Module saphir::prelude

source ·
Expand description

Contains everything you need to bootstrap your http server

use saphir::prelude::*;

// implement magic

Re-exports

pub use crate::body::Body;
pub use crate::body::Form;
pub use crate::body::Json;
pub use crate::controller::Controller;
pub use crate::controller::ControllerEndpoint;
pub use crate::controller::EndpointsBuilder;
pub use crate::error::SaphirError;
pub use crate::extension::Ext;
pub use crate::file::File;
pub use crate::guard::Guard;
pub use crate::handler::Handler;
pub use crate::http_context::operation::OperationId;
pub use crate::http_context::HttpContext;
pub use crate::middleware::Middleware;
pub use crate::multipart::Multipart;
pub use crate::redirect::Redirect;
pub use crate::request::FromRequest;
pub use crate::request::Request;
pub use crate::responder::Responder;
pub use crate::response::Builder;
pub use crate::response::Response;
pub use crate::server::Server;
pub use crate::macros::*;
macro

Modules

HTTP header types

Structs

A cheaply cloneable and sliceable chunk of contiguous memory.
Representation of an HTTP cookie.
Structure that follows the builder pattern for building Cookie structs.
A collection of cookies that tracks its modifications.
A type map of protocol extensions.
The Request Method (VERB)
An HTTP status code (status-code in RFC 7230 et al.).
The URI component of a request.
Represents a version of the HTTP spec.