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

Method options

hug/routing.py:555–559  ·  view source on GitHub ↗

Sets the acceptable HTTP method to OPTIONS

(self, urls=None, **overrides)

Source from the content-addressed store, hash-verified

553 return self.where(accept="PATCH", **overrides)
554
555 def options(self, urls=None, **overrides):
556 """Sets the acceptable HTTP method to OPTIONS"""
557 if urls is not None:
558 overrides["urls"] = urls
559 return self.where(accept="OPTIONS", **overrides)
560
561 def head(self, urls=None, **overrides):
562 """Sets the acceptable HTTP method to HEAD"""

Callers

nothing calls this directly

Calls 1

whereMethod · 0.95

Tested by

no test coverage detected