Class: Rack::ReturnData

Inherits:
Action
  • Object
show all
Defined in:
lib/rack/contrib/perftools_profiler.rb

Instance Method Summary collapse

Methods inherited from Action

#act, for_env, #initialize

Constructor Details

This class inherits a constructor from Rack::Action

Instance Method Details

#responseObject



311
312
313
314
315
316
317
# File 'lib/rack/contrib/perftools_profiler.rb', line 311

def response
  if @profiler.profiling?
    [400, {'Content-Type' => 'text/plain'}, ['No profiling data available.']]
  else
    @middleware.profiler_data_response(@profiler.data(@data_params))
  end
end