class Fuprint::Request

Public Class Methods

new(app) click to toggle source
# File lib/fuprint/request.rb, line 6
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source

Thread safe call

# File lib/fuprint/request.rb, line 11
def call(env)
  dup.call!(env)
end
call!(env) click to toggle source

Receive the request and print info

# File lib/fuprint/request.rb, line 16
def call!(env)
  print_info(env)
  @app.call(env)
end