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

Download history 545/week @ 2024-07-23 412/week @ 2024-07-30 364/week @ 2024-08-06 261/week @ 2024-08-13 189/week @ 2024-08-20 323/week @ 2024-08-27 305/week @ 2024-09-03 372/week @ 2024-09-10 122/week @ 2024-09-17 273/week @ 2024-09-24 229/week @ 2024-10-01 92/week @ 2024-10-08 334/week @ 2024-10-15 424/week @ 2024-10-22 264/week @ 2024-10-29 210/week @ 2024-11-05

1,279 downloads per month

MIT/Apache

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

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