Class: Rack::ReturnData
- Defined in:
- lib/rack/contrib/perftools_profiler.rb
Instance Method Summary collapse
Methods inherited from Action
Constructor Details
This class inherits a constructor from Rack::Action
Instance Method Details
#response ⇒ Object
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 |