trillium-send-file 0.1.0

send file for trillium.rs
docs.rs failed to build trillium-send-file-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

trillium-send-file

Send file connection extension for trillium.rs.

Getting Started

[dependencies]
trillium = "0.2.0"
trillium-smol = "0.2.0"
trillium-send-file = { version = "0.1.0", features = ["smol"] }

Use features = ["async-std"] for async-std runtime.

Example

src/main.rs

use trillium::Conn;
use trillium_send_file::SendFileConnExt;

fn main() {
    trillium_smol::run(|conn: Conn| async move {
        conn.send_file("/tmp/file.txt".into()).await
    });
}