MCPcopy
hub / github.com/hugapi/hug / where

Method where

hug/routing.py:113–117  ·  view source on GitHub ↗

Creates a new route, based on the current route, with the specified overrided values

(self, **overrides)

Source from the content-addressed store, hash-verified

111 return self.where(map_params=map_params)
112
113 def where(self, **overrides):
114 """Creates a new route, based on the current route, with the specified overrided values"""
115 route_data = self.route.copy()
116 route_data.update(overrides)
117 return self.__class__(**route_data)
118
119
120class CLIRouter(Router):

Callers 15

outputMethod · 0.95
transformMethod · 0.95
validateMethod · 0.95
apiMethod · 0.95
requiresMethod · 0.95
doesnt_requireMethod · 0.95
map_paramsMethod · 0.95
test_whereMethod · 0.45
__call__Method · 0.45
decoratorMethod · 0.45
nameMethod · 0.45
versionMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_whereMethod · 0.36