Class: Herdis::Rack::HostParameter

Inherits:
Object
  • Object
show all
Includes:
Goliath::Rack::AsyncMiddleware
Defined in:
lib/herdis/rack/host_parameter.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/herdis/rack/host_parameter.rb', line 10

def call(env)
  class << Fiber.current
    attr_accessor :host
  end
  Fiber.current.host = env["SERVER_NAME"]
  super(env)
end