S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which response class can return HTML in FastAPI?

  • (A) HTMLResponse
  • (B) HtmlOutput
  • (C) ResponseHTML
  • (D) TextHTML
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
`HTMLResponse` returns HTML content and sets the appropriate content-type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.