protocol-agnostic-router
v1.0.4
Published
Subclassable protocol agnostic router, HTTP as proof of concept
Readme
This module features Router: an abstract boilerplate synchronous message processor for custom middleware applications.
Although it's accompanied with an HTTP specific descendant, HttpRouter (see test code for a working example), this is only a proof of concept, by no means supposed to compete with advanced HTTP servers. Developers in need of a well known HTTP centric RESTful framework better consider using express or like.
Another simple subclass, SignalRouter, is here to illustrate the basic idea: you may have endpoints for system signals, very similar to HTTP ones: configured, logged etc. in a completely uniform way.
