i want use nancy default routing, it's clean , works well, want option log incoming requests console (i'm using nancy's self-hosting module) irrespective of whether explicit route exists. put simply, want able capture verb, incoming request uri, posted data (if it's post request), etc.
how do this? before
/after
seem run requests match existing route, , 404 not trigger onerror
either. also, using get["/(.*)"]
catches requests , ignore other http verbs.
use before
/after
on application level, not module, https://github.com/nancyfx/nancy/wiki/the-application-before%2c-after-and-onerror-pipelines
Comments
Post a Comment