MCPcopy
hub / github.com/fastapi/fastapi / render

Method render

fastapi/responses.py:64–66  ·  view source on GitHub ↗
(self, content: Any)

Source from the content-addressed store, hash-verified

62 """
63
64 def render(self, content: Any) -> bytes:
65 assert ujson is not None, "ujson must be installed to use UJSONResponse"
66 return ujson.dumps(content, ensure_ascii=False).encode("utf-8")
67
68
69@deprecated(

Callers 2

generate_readme_contentFunction · 0.45

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected