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

Function text

hug/input_format.py:35–37  ·  view source on GitHub ↗

Takes plain text data

(body, charset="utf-8", **kwargs)

Source from the content-addressed store, hash-verified

33
34@content_type("text/plain")
35def text(body, charset="utf-8", **kwargs):
36 """Takes plain text data"""
37 return body.read().decode(charset)
38
39
40@content_type("application/json")

Callers 2

jsonFunction · 0.70
urlencodedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected