This is our current Rack app (i.e. the "inner app" wrapped by middleware):
app = lambda { |env|
response = Response.new
response.finish(env) unless env[:parallel_manager]
env[:response] = response
}
It's really kind of a hack. I think our adapters should each perform this and stop acting like middleware when they really play a role of an endpoint. I can't think of a use case where you would want to mount middleware after the adapter.
This is our current Rack app (i.e. the "inner app" wrapped by middleware):
It's really kind of a hack. I think our adapters should each perform this and stop acting like middleware when they really play a role of an endpoint. I can't think of a use case where you would want to mount middleware after the adapter.