Coverage for docs_src / request_forms / tutorial001_py310.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.3, created at 2026-02-12 18:15 +0000

1from fastapi import FastAPI, Form 1abc

2 

3app = FastAPI() 1abc

4 

5 

6@app.post("/login/") 1abc

7async def login(username: str = Form(), password: str = Form()): 1abc

8 return {"username": username} 1def