This crate is the primary dependency for building a trillium app or library. It contains a handful of core types and reexports a few others that you will necessarily need, but otherwise tries to stay small and focused. This crate will hopefully be the most stable within the trillium ecosystem. That said, trillium is still pre 1.0 and should be expected to evolve over time.
At a minimum to build a trillium app, you’ll also need a trillium runtime adapter.
Result::Okor returns the
Connwith a 500 status.
Option::Someor returns the
Vec<u8>content, or a boxed
KnownHeaderNameor a string representation of an unknown header.
HeaderValuerepresents the right hand side of a single
KnownHeaderNamevariant instead of a &’static str anywhere possible, as it allows trillium to skip parsing the header entirely.