Saphir is a progressive http server framework based on Hyper-rs that aims to reduce the time spent on playing with futures and limiting the amount of copied code amongst request matching.
Saphir provide what's needed to easily start with your own server with middleware, controllers and request routing.
Futures version will comes with more macro and a nightly experiment is currently being tested to reproduces decorator in rust.
Modules for the controllers
Modules for the error handling into saphir
Headers types re-export
Modules for the middlewares
Modules for the router
Modules for the http server
Convert a str to a regex
A stream of
A type map of protocol extensions.
The Request Method (VERB)
Represents an HTTP request.
Represents an HTTP response
An HTTP status code (
A Structure which represent an http request with a fully loaded body
A Structure which represent a fully mutable http response
The URI component of a request.
Represents a version of the HTTP spec.
Enum representing whether or not a request should continue to be processed be the server
A trait allowing the implicit conversion of a Hyper::Request into a SyncRequest
This trait represents a streaming body of a
Trait to convert string type to regular expressions