👩💻 Join our community of thousands of amazing developers!
Justinas Stankevičius wrote a post about writing HTTP middleware in Go. Having seen how Rack changed the Ruby web framework landscape, I’m glad Go has simple HTTP server interfaces baked in. GitHub itself runs as a set of about 15 Rack middleware (depending on the exact environment that it boots in). They are setup in a nice declarative format: # GitHub app middleware pipeline use InvalidCookieDropper use Rack::ContentTypeCleaner use Rails::Rack::Static unless %w[staging production].include?(R...