S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the use of `Body()` in FastAPI?

  • (A) To parse form fields
  • (B) To parse query parameters
  • (C) To declare the request body explicitly
  • (D) To define response headers
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
`Body()` is used to define and validate request body data.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.