R

Ravina • 3.96K Points
Extraordinary

Q. Which response class is used to return raw bytes data in FastAPI?

  • (A) ByteResponse
  • (B) RawResponse
  • (C) Response(content=bytes)
  • (D) BinaryResponse
  • Correct Answer - Option(C)
  • Views: 17
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`Response(content=bytes)` can be used to return raw byte responses.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.