R

Ravina • 3.96K Points
Extraordinary

Q. Which type of response class is best for returning HTML content in FastAPI?

  • (A) HTMLResponse
  • (B) JSONResponse
  • (C) PlainTextResponse
  • (D) FileResponse
  • Correct Answer - Option(A)
  • Views: 36
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina

`HTMLResponse` is used when returning HTML content such as rendered templates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.