Missing .head() method in Nickel::router()
imclint21 opened this issue · comments
clint21.eth ⚡️ commented
Hi,
I try to create a REST API with Nickel, and I've some difficulties to implement head method.
Could you add router.head()
to the Nickel Router ?
Thank you!
Jeff Olhoeft commented
I don't see a reason for there not to be one. I guess no one has needed it before now. I'll add it shortly. In the meantime, you ought to be able to use this -
router.add_route(Method::Head, matcher, handler);
- which is what the implementation will be.
clint21.eth ⚡️ commented
Yes yes it works like this, but it can be good to add directly .head()
Thanks
Jeff Olhoeft commented
Re-opening, to remind myself to implement his.
Jeff Olhoeft commented
We have a PR - #447
Jeff Olhoeft commented
And merged. I'm going to see if I can get anything else in this week, then push a new version to crate.io on Saturday.