module Roda::RodaPlugins::EarlyHints::InstanceMethods
Public Instance Methods
Source
# File lib/roda/plugins/early_hints.rb, line 15 def send_early_hints(hash) if eh_proc = env['rack.early_hints'] eh_proc.call(hash) end end
Send given hash of Early Hints using the rack.early_hints environment variable, currenly only supported by puma. hash given should generally have the single key ‘Link’, and a string or array of strings for each of the early hints.