module Roda::RodaPlugins::Path::InstanceMethods

def _base_url

The string to prepend to the path to make the path a URL.
def _base_url
  r = @_request
  scheme = r.scheme
  port = r.port
  "#{scheme}://#{r.host}#{":#{port}" unless DEFAULT_PORTS[scheme] == port}"
end