class Falcon::Adapters::EarlyHints
def call(headers)
def call(headers) headers.each do |key, value| if key.casecmp("link").zero? and match = PRELOAD.match(value) @request.push(match[:path]) else Async.logger.warn(@request) {"Unsure how to handle early hints header: #{key}"} end end end
def initialize(request)
def initialize(request) @request = request end
def push(path, preload: true, **options)
def push(path, preload: true, **options) @request.push(path) end