MCPcopy Index your code
hub / github.com/hugapi/hug / _create_interface

Method _create_interface

hug/routing.py:276–278  ·  view source on GitHub ↗
(self, api, api_function, catch_exceptions=True)

Source from the content-addressed store, hash-verified

274 return self.where(defaults=defaults, **overrides)
275
276 def _create_interface(self, api, api_function, catch_exceptions=True):
277 interface = hug.interface.HTTP(self.route, api_function, catch_exceptions)
278 return (interface, api_function)
279
280 def response_headers(self, headers, **overrides):
281 """Sets the response headers automatically injected by the router"""

Callers 4

__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected