Skip to content

Simple context based http.Handler pattern

License

Notifications You must be signed in to change notification settings

brendan-munro/synapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

synapse

Synapse proves a simple context based http.Handler and chaining tool.

Understanding

Synapse was written to have a simple http.Handler that passes along a context.Context with each request.

Many other solutions already exists but they tend to either implement their own context object or have everything wrapped up behind a customer mux.

Usage

An example of using a middleware chain with a handler can be found in the tests.

Credits

github.com/justinas/alice Was used as a base when making the chaining mechanism

Contributing/Bugs

If you happen to come across a bug or can think of a better feature implementation please open a new appropriate issue and submit a pull request (if relevant)/

About

Simple context based http.Handler pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages