Sha256: 000c5ec0296429d85ed6fede918db0ac260df49d542111f897838db616a3c7a8

Contents?: true

Size: 239 Bytes

Versions: 11

Compression:

Stored size: 239 Bytes

Contents

# Simple::SQL connection handling
class Simple::Httpd::BaseController
  before do
    @processing_started_at = Time.now
  end

  after do
    runtime = Time.now - @processing_started_at
    headers "X-Processing" => runtime.to_s
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple-httpd-0.4.3 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.4.2 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.4.1 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.4.0 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.3.5 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.3.4 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.3.3 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.3.1 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.3.0 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.0.4 lib/simple/httpd/base_controller/x_processing.rb
simple-httpd-0.0.2 lib/simple/httpd/base_controller/x_processing.rb