y21 / tl

Fast, zero-copy HTML Parser written in Rust
https://docs.rs/tl
MIT License
336 stars 19 forks source link

Bytes input instead of string input #61

Open konstin opened 11 months ago

konstin commented 11 months ago

Would it be possible to allow &[u8] of something similar as input to tl::parse instead of &str, given that the parser uses an u8 stream internally? This would avoid parsing our network request into utf8 before parsing.