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

Method set_not_found_handler

hug/api.py:217–222  ·  view source on GitHub ↗

Sets the not_found handler for the specified version of the api

(self, handler, version=None)

Source from the content-addressed store, hash-verified

215 return getattr(self, "_not_found_handlers", {})
216
217 def set_not_found_handler(self, handler, version=None):
218 """Sets the not_found handler for the specified version of the api"""
219 if not self.not_found_handlers:
220 self._not_found_handlers = {}
221
222 self.not_found_handlers[version] = handler
223
224 def documentation(self, base_url=None, api_version=None, prefix=""):
225 """Generates and returns documentation for this API endpoint"""

Callers 2

extendMethod · 0.95
__call__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected