Class: Promenade::Client::Rack::RequestLabeler

Inherits:
Object
  • Object
show all
Extended by:
SingletonCaller
Defined in:
lib/promenade/client/rack/request_labeler.rb

Direct Known Subclasses

RequestControllerActionLabeler

Instance Method Summary collapse

Methods included from SingletonCaller

initialize_singleton, singleton

Instance Method Details

#call(env) ⇒ Object



14
15
16
17
18
19
# File 'lib/promenade/client/rack/request_labeler.rb', line 14

def call(env)
  {
    method: env[REQUEST_METHOD].to_s.downcase,
    host: env[HTTP_HOST].to_s,
  }
end