R

Ravina • 3.59K Points
Extraordinary

Q. How do you manually set the content type of a FastAPI response?

  • (A) content_type
  • (B) set_type
  • (C) media_type
  • (D) content
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
Use the `media_type` parameter to set the content type of a `Response`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.