MCPcopy
hub / github.com/pyload/pyload / get_url

Method get_url

module/lib/bottle.py:637–641  ·  view source on GitHub ↗

Return a string that matches a named route

(self, routename, **kargs)

Source from the content-addressed store, hash-verified

635 return self.router.match(environ)
636
637 def get_url(self, routename, **kargs):
638 """ Return a string that matches a named route """
639 scriptname = request.environ.get('SCRIPT_NAME', '').strip('/') + '/'
640 location = self.router.build(routename, **kargs).lstrip('/')
641 return urljoin(urljoin('/', scriptname), location)
642
643 def route(self, path=None, method='GET', callback=None, name=None,
644 apply=None, skip=None, **config):

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected