module Sprockets::URIUtils

def join_file_uri(scheme, host, path, query)

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

def join_file_uri: (String scheme, nil host, String path, nil query) -> String

This signature was generated using 52 samples from 5 applications.

Returns String.

Internal: Join file: URI component parts into String.
def join_file_uri(scheme, host, path, query)
  str = +"#{scheme}://"
  str << host if host
  path = "/#{path}" unless path.start_with?("/".freeze)
  str << URI::Generic::DEFAULT_PARSER.escape(path)
  str << "?#{query}" if query
  str
end