MCPcopy
hub / github.com/fastapi/fastapi / redoc_html

Method redoc_html

fastapi/applications.py:1151–1156  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

1149 if self.openapi_url and self.redoc_url:
1150
1151 async def redoc_html(req: Request) -> HTMLResponse:
1152 root_path = req.scope.get("root_path", "").rstrip("/")
1153 openapi_url = root_path + self.openapi_url
1154 return get_redoc_html(
1155 openapi_url=openapi_url, title=f"{self.title} - ReDoc"
1156 )
1157
1158 self.add_route(self.redoc_url, redoc_html, include_in_schema=False)
1159

Callers

nothing calls this directly

Calls 2

get_redoc_htmlFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected