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

Method render

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

Source from the content-addressed store, hash-verified

92 """
93
94 def render(self, content: Any) -> bytes:
95 assert orjson is not None, "orjson must be installed to use ORJSONResponse"
96 return orjson.dumps(
97 content, option=orjson.OPT_NON_STR_KEYS | orjson.OPT_SERIALIZE_NUMPY
98 )

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected