R

Ravina • 3.96K Points
Extraordinary

Q. Which function in FastAPI is used to read request body as plain text?

  • (A) await request.body()
  • (B) request.get_json()
  • (C) request.plain()
  • (D) request.read_text()
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`await request.body()` reads the raw body content of the request.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.