sergeyt / Owin.Routing

Simple routing for OWIN applications inspired by express.js
MIT License
12 stars 4 forks source link

Expose Register Method on RouteBuilder to the public #22

Open jamesbascle opened 8 years ago

jamesbascle commented 8 years ago

I need to register handlers for things other than the 5 main "Get", "Post", "Patch", "Delete", "Put" methods. Is there any technical reason I'm not seeing that would prevent this from happening?

There also doesn't seem to be a way to let handlers fall through the pipeline to other handlers downstream (aka next.Invoke()). Could be useful to have a Route.Apply type method that will call the next item in the pipeline.

Any reason for not implementing this and PRing?

sergeyt commented 8 years ago

@jamesbascle please feel free to make a PR.