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

Method accept

hug/routing.py:515–517  ·  view source on GitHub ↗

Sets a list of HTTP methods this router should accept

(self, *accept, **overrides)

Source from the content-addressed store, hash-verified

513 return self.where(urls=urls, **overrides)
514
515 def accept(self, *accept, **overrides):
516 """Sets a list of HTTP methods this router should accept"""
517 return self.where(accept=accept, **overrides)
518
519 def get(self, urls=None, **overrides):
520 """Sets the acceptable HTTP method to a GET"""

Callers 8

test_acceptFunction · 0.80
test_acceptMethod · 0.80
test_acceptFunction · 0.80
decoratorMethod · 0.80

Calls 1

whereMethod · 0.95

Tested by 7

test_acceptFunction · 0.64
test_acceptMethod · 0.64
test_acceptFunction · 0.64