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

#981 in HTTP server

Download history 250/week @ 2023-11-02 293/week @ 2023-11-09 774/week @ 2023-11-16 335/week @ 2023-11-23 384/week @ 2023-11-30 567/week @ 2023-12-07 517/week @ 2023-12-14 341/week @ 2023-12-21 966/week @ 2023-12-28 637/week @ 2024-01-04 739/week @ 2024-01-11 965/week @ 2024-01-18 1063/week @ 2024-01-25 1158/week @ 2024-02-01 1047/week @ 2024-02-08 997/week @ 2024-02-15

4,535 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
~213K SLoC