zacharygolba / via

A multi-threaded async web framework for people who appreciate simplicity.
Apache License 2.0
1 stars 0 forks source link

fix(via-router): impl newtype around Box<str> for param names #28

Closed zacharygolba closed 3 weeks ago

zacharygolba commented 3 weeks ago

Refactors via-router to avoid storing static references for param names in favor of a newtype around Box<str>. This is a security fix that also stabilizes memory usage.

zacharygolba commented 3 weeks ago

I initially implemented this with Arc<str> but ultimately decided that param names are short and we're better off copying them.