Re-exports§
pub extern crate hyper;
pub use middleware::Continue;
pub use middleware::Halt;
pub use router::Router;
pub use router::Route;
pub use router::RouteResult;
pub use router::HttpRouter;
pub use mimes::MediaType;
pub use template_cache::ReloadPolicy;
pub use template_cache::TemplateCache;
Modules§
- extensions
- macros
- mimes
- router
- A
Router
assignsMiddleware
to paths and resolves them per request - status
- template_
cache
Macros§
- middleware
- Macro to reduce the boilerplate required for using unboxed
closures as
Middleware
due to current type inference behaviour. - router
- try_
with
Structs§
- Default
Error Handler - Favicon
Handler - Listening
Server - A server listeing on a socket
- Mount
- Nickel
- Nickel is the application object. It’s the surface that holds all public APIs.
- Nickel
Error - NickelError is the basic error type for HTTP errors as well as user defined errors.
One can pattern match against the
kind
property to handle the different cases. - Options
- Configuration options for the server.
- Params
- Request
- A container for all the request data.
- Response
- A container for the response
- Static
Files Handler
Enums§
Traits§
- Error
Handler - Form
Body - Json
Body - Middleware
- Mountable
- Query
String - Responder
- This trait provides convenience for translating a number
of common return types into a
MiddlewareResult
while also modifying theResponse
as required.