(self, content: Any)
| 10 | media_type = "application/json" |
| 11 | |
| 12 | def render(self, content: Any) -> bytes: |
| 13 | assert orjson is not None, "orjson must be installed" |
| 14 | return orjson.dumps(content, option=orjson.OPT_INDENT_2) |
| 15 | |
| 16 | |
| 17 | @app.get("/", response_class=CustomORJSONResponse) |