DenisFrezzato / hyper-ts

Type safe middleware architecture for HTTP servers
https://denisfrezzato.github.io/hyper-ts/
MIT License
391 stars 18 forks source link

Open the index on decode middlewares #73

Closed thewilkybarkid closed 2 years ago

thewilkybarkid commented 2 years ago

The decodeX middleware use fromConnection but restrict the index to StatusOpen. I can't see a reason for it, so this PR makes I a generic on these functions.