{{ partial "header" . }}
Rust's powerful actor system and most fun web framework
InstallForget about stringly typed objects, from request to response, everything has types.
Actix provides a lot of features out of box. HTTP/2, logging, etc.
Easily create your own libraries that any Actix application can use.
Actix is blazingly fast. Don't take our word for it -- see for yourself!
Handler functions in actix can return a wide range of objects that
implement the Responder
trait. This makes it a breeze
to return consistent responses from your APIs.
Actix comes with a powerful extractor system that extracts data from the incoming HTTP request and passes it to your view functions. Not only does this make for a convenient API but it also means that your view functions can be synchronous code and still benefit from asynchronous IO handling.
{{ highlight `#[derive(Deserialize, Serialize)] struct Event { id: OptionHandling multipart/urlencoded form data is easy. Just define a structure that can be deserialized and actix will handle the rest.
{{ highlight `#[derive(Deserialize)] struct Register { username: String, country: String, } async fn register(form: web::FormAn actix app comes with a URL routing system that lets you match on URLs and invoke individual handlers. For extra flexibility, scopes can be used.
{{ highlight `async fn index(_req: HttpRequest) -> impl Responder { "Hello from the index page!" } async fn hello(path: web::Path