Salvo is an asynchronous web framework built on the Hyper HTTP library and Tokio runtime. It provides facilities for developing web services and APIs while retaining direct access to request and response objects. Application handlers can return values that are automatically converted into HTTP responses, reducing the amount of repetitive response construction required.
Salvo organises routes into a hierarchical tree, with middleware attached to individual branches of that tree. This allows common processing requirements, such as authentication or logging, to be applied selectively to related endpoints. Middleware and ordinary request handlers share the same programming interface.
The framework also integrates API documentation generation and transport security facilities, allowing applications to expose documented HTTP services and manage their own HTTPS connections.
This is free and open source software.
Key Features
- HTTP/1.1, HTTP/2 and optional HTTP/3 support.
- Nested routers with path parameters, regular expressions and request filters.
- Middleware execution before and after endpoint processing.
- Typed extraction and deserialization of incoming request data.
- Multipart form processing and file uploads.
- Automatic OpenAPI documentation generation.
- WebSocket and WebTransport communication.
- Server-Sent Events (SSE).
- Automatic TLS certificate acquisition through ACME.
- OpenSSL, Rustls and native TLS integration.
- Mutual TLS authentication.
- Static file serving from multiple physical directories.
- Configurable HTML, JSON and XML error responses.
- Optional middleware for authentication, logging, request size limits and concurrency control.
- Graceful and forced server shutdown facilities.
- Compatibility adapters for Tower services and middleware.
- Utilities for testing HTTP applications.
Website: github.com/salvo-rs/salvo
Support:
Developer: The Salvo Developers
License: Apache License 2.0
Salvo is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Rust Web Micro-Frameworks | |
|---|---|
| Actix Web | Powerful, pragmatic, and extremely fast web framework with a few twists |
| Salvo | Powerful and simplest web server framework |
| Abscissa | Many features with minimal dependencies and security conscious |
| Rouille | Designed to be intuitive and doesn't employ middlewares |
| Tide | Mnimal and pragmatic Rust web application framework |
| Micro Http | Lightweight and modular HTTP server implementation |
| Spair | Small and fast frontend framework |
| vial | Small web "framework" for making small web sites |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.