13 releases
0.2.0-rc.12 | May 30, 2024 |
---|---|
0.2.0-rc.10 | Feb 13, 2024 |
0.2.0-rc.7 | Nov 1, 2023 |
0.2.0-rc.3 | Apr 21, 2023 |
0.1.0 | Sep 9, 2021 |
#1562 in HTTP server
1,279 downloads per month
100KB
2K
SLoC
Welcome to Trillium!
📖 Guide 📖
The guide provides an architectural overview and lay of the land connecting the trillium crates.
📑 Rustdocs 📑
The rustdocs represent the best way to learn about any of trillium's individual crates and the specific interfaces.
Legal:
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
This crate provides handlers for common http api behavior.
Eventually, some of this crate may move into the trillium crate, but for now it exists separately for ease of iteration. Expect more breaking changes in this crate then in the trillium crate.
Formats supported:
Currently, this crate supports receiving application/json
and
application/x-form-www-urlencoded
by default. To disable
application/x-form-www-urlencoded
support, use default-features = false
.
This crate currently only supports sending json responses, but may
eventually add Accepts
negotiation and further outbound response
content types.
The ApiConnExt
extension trait and ApiHandler
can be used
independently or in combination.
ApiHandler
provides a different and more experimental interface to writing trillium handlers,
with different performance and ergonomic considerations.
Dependencies
~8.5MB
~210K SLoC