MCPcopy
hub / github.com/hugapi/hug / output

Method output

hug/routing.py:75–77  ·  view source on GitHub ↗

Sets the output formatter that should be used to render this route

(self, formatter, **overrides)

Source from the content-addressed store, hash-verified

73 self.route["args"] = args
74
75 def output(self, formatter, **overrides):
76 """Sets the output formatter that should be used to render this route"""
77 return self.where(output=formatter, **overrides)
78
79 def transform(self, function, **overrides):
80 """Sets the function that should be used to transform the returned Python structure into something

Callers

nothing calls this directly

Calls 1

whereMethod · 0.95

Tested by

no test coverage detected