module Roda::RodaPlugins::EarlyHints::InstanceMethods

  1. lib/roda/plugins/early_hints.rb


Public Instance

  1. send_early_hints

Public Instance methods


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.

[show source]
   # File lib/roda/plugins/early_hints.rb
16 def send_early_hints(hash)
17   if eh_proc = env['rack.early_hints']
19   end
20 end