R

Ravina • 3.96K Points
Extraordinary

Q. Which FastAPI component allows you to control the response media type?

  • (A) type
  • (B) response_class
  • (C) media
  • (D) format_type
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`response_class` allows setting the response type such as `JSONResponse`, `HTMLResponse`, etc.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.