purescript-hyper / hyper

Type-safe, statically checked composition of HTTP servers
https://hyper.wickstrom.tech
Mozilla Public License 2.0
281 stars 29 forks source link

Ability to close server #93

Open Cmdv opened 4 years ago

Cmdv commented 4 years ago

I'm currently using hyper as part of functional test with Toppokki.

The problem being that I'm unable to close the current server after each test, so when I run a new describe the old server is still active and I get a clash.

I know that Node.HTTP has a close function here, is it something I've missed or would it be a needed feature?