RSSAmplifier

Alex Edwards · Oct 21, 2014

Making and using HTTP Middleware in Go

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

When you're building a web application, there's probably some shared functionality that you want to run for many (or even all) HTTP requests. You might want to log every request, gzip every response, or check that a user is authenticated before sending them any content. One way of organizing this shared functionality is to set it up as middleware — essentially a self-contained block of code…

Read on alexedwards.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.