Skip to content

prabirshrestha/trillium-send-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
    });
}

About

No description or website provided.

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages