Httprouter compatibility?
chespinoza opened this issue · comments
ChristianEspinoza commented
Are there plans to have https://github.com/julienschmidt/httprouter compatibility?
Thanks in advance.
Justinas Stankevičius commented
nosurf wraps any http.Handler
. Unless there's some specific issue I don't know, it should work perfectly fine with HttpRouter.
Building upon the example from its README:
log.Fatal(http.ListenAndServe(":8080", nosurf.New(router)))
ChristianEspinoza commented
Yeah, confirmed that nosurf works with httprouter.