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

Method add_directive

hug/api.py:555–557  ·  view source on GitHub ↗
(self, directive)

Source from the content-addressed store, hash-verified

553 )
554
555 def add_directive(self, directive):
556 self._directives = getattr(self, "_directives", {})
557 self._directives[directive.__name__] = directive
558
559 def handlers(self):
560 """Returns all registered handlers attached to this API"""

Callers 2

extendMethod · 0.95
decoratorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected