thruster-rs / Thruster

A fast, middleware based, web framework written in Rust
MIT License
1.07k stars 47 forks source link

feat: Move `set_body` to accept a `Vec<u8>` #87

Closed trezm closed 6 years ago

trezm commented 6 years ago

Currently set_body only accepts a String, which limits the useability of the api. This moves set_body to accepting a Vec<u8> which is not limited by utf8 strings.

This resolves [#72] by updating the builtins::send::file middleware.