11 releases

0.2.0-rc.10 Feb 13, 2024
0.2.0-rc.8 Jan 2, 2024
0.2.0-rc.7 Nov 1, 2023
0.2.0-rc.3 Apr 21, 2023
0.1.0 Sep 9, 2021

#1198 in HTTP server

Download history 219/week @ 2023-11-26 331/week @ 2023-12-03 638/week @ 2023-12-10 423/week @ 2023-12-17 195/week @ 2023-12-24 947/week @ 2023-12-31 641/week @ 2024-01-07 705/week @ 2024-01-14 1004/week @ 2024-01-21 923/week @ 2024-01-28 1157/week @ 2024-02-04 913/week @ 2024-02-11 872/week @ 2024-02-18 590/week @ 2024-02-25 710/week @ 2024-03-03 800/week @ 2024-03-10

2,983 downloads per month

MIT/Apache

99KB
1.5K 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

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

~8MB
~212K SLoC