fukamachi / woo

A fast non-blocking HTTP server on top of libev
http://ultra.wikia.com/wiki/Woo_(kaiju)
MIT License
1.28k stars 98 forks source link

handle-response: make etypecase more specific #45

Open PuercoPop opened 8 years ago

PuercoPop commented 8 years ago

Hi, currently handle-response only tests if the response returned is a list. () satifies that constraint and an error is signaled down the line in handle-normal-response when trying to destructuring-bind the malformed response. It would be a good idea to fail earlier with a clear error. The type definitions could be placed in clack as they could be useful for other handlers and users.