R

Ravina • 3.96K Points
Extraordinary

Q. How do you redirect a user to another endpoint in FastAPI?

  • (A) RedirectTo(url)
  • (B) RedirectResponse(url)
  • (C) Response(status_code=301)
  • (D) Redirect(status=302)
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`RedirectResponse` is used to redirect users in FastAPI.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.