Top "Rack-middleware" questions

Rack provides a minimal, modular, and adaptable interface for developing web applications in Ruby.

Adding a custom middleware to Rails 4

I have a Rails 4 sample project (Blog) and I have created a simple middleware called 'request_timer' in config/initializers/…

ruby-on-rails-4 rack rack-middleware
Testing Middleware with Rspec

I've written some Rack-Middleware and now I'm trying to test it with Rspec. But all Rack-Middleware is instantiated with an …

ruby-on-rails rspec rack rack-middleware
What's the variable HTTP_X_FORWARDED_HOST in the @env hash in middleware?

In a Rack middleware filter, I know the call method takes an env hash variable. I'm looking through someone's Rack …

ruby-on-rails rack rack-middleware
How to determine if Rails is running from CLI, console or as server?

I have a middleware for announcing my application on the local network app using Bonjour, but it's also announcing the …

ruby-on-rails rack rack-middleware