class FlowmorRouter::HostAndPortGrabber
Public Class Methods
new(app)
click to toggle source
# File lib/flowmor_router.rb, line 9 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/flowmor_router.rb, line 13 def call(env) req = Rack::Request.new(env) Thread.current[:host] = req.host Thread.current[:port] = req.port @app.call(env) end