R

Ravina • 3.96K Points
Extraordinary

Q. Which of the following is used to define headers in FastAPI route function?

  • (A) Header()
  • (B) Request.headers
  • (C) Context()
  • (D) Env()
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`Header()` is used to declare and validate request headers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.