class Rack::Log

Constants

RACK_KEY
VERSION

Public Class Methods

new(stack, logger) click to toggle source
# File lib/rack/log.rb, line 6
def initialize(stack, logger)
  @stack = stack
  @logger = logger
end

Public Instance Methods

call(previous_state) click to toggle source
# File lib/rack/log.rb, line 11
def call(previous_state)
  @state = previous_state
  state[RACK_KEY] = @logger
  stack.call(state)
end

Private Instance Methods

body() click to toggle source
# File lib/rack/log.rb, line 33
        def body
  @body
end
headers() click to toggle source
# File lib/rack/log.rb, line 25
        def headers
  @headers
end
stack() click to toggle source
# File lib/rack/log.rb, line 17
        def stack
  @stack
end
state() click to toggle source
# File lib/rack/log.rb, line 21
        def state
  @state
end
status() click to toggle source
# File lib/rack/log.rb, line 29
        def status
  @status
end