Rack middleware to route requests based on Accept headers