module Sprockets::HTTPUtils

def find_best_q_match(q_values, available, &matcher)

Experimental RBS support (using type sampling data from the type_fusion project).

def find_best_q_match: (Array[Array, String, Float] q_values, (Array[] | Array[Hash, filename, String, type, String]) available, ) -> nil

This signature was generated using 23 samples from 5 applications.

Returns the matched String from available Array or nil.

Adapted from Rack::Utils#q_values.

Internal: Find the best qvalue match from an Array of available options.
def find_best_q_match(q_values, available, &matcher)
  find_q_matches(q_values, available, &matcher).first
end