Skip to content

benjohns1/go-middleware-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Middleware Example

A collection of basic HTTP middleware implementation examples in Go

  1. loopchain: An extremely simple middleware implementation using a for loop
  2. recursivechain: Middleware implementation using recursion that allows for a short-circuiting the middleware chain
  3. finalhandler: Variant on the recursive implementation, but using a final logic handler in the chain as the first chain parameter
  4. customstate: Middleware implementation using recursion with a custom http.ResponseWriter implementation to manage custom state along the request chain
  5. apiexample: A slightly more organized example JSON API using previous middleware techniques

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages