Method: MessageBus::Implementation#extra_response_headers_lookup

Defined in:
lib/message_bus.rb

#extra_response_headers_lookup {|env| ... } ⇒ void

This method returns an undefined value.

Yields:

  • (env)

    a routine to determine extra headers to be set on a subscriber response

Yield Parameters:

  • env (Rack::Request::Env)

    the subscriber request environment

Yield Returns:

  • (Hash<String => String>)

    the extra headers to set on the response



244
245
246
247
# File 'lib/message_bus.rb', line 244

def extra_response_headers_lookup(&blk)
  configure(extra_response_headers_lookup: blk) if blk
  @config[:extra_response_headers_lookup]
end