- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Cook (0.15 sec)
-
docs_src/custom_response/tutorial004.py
app = FastAPI() def generate_html_response(): html_content = """ <html> <head> <title>Some HTML in here</title> </head> <body> <h1>Look ma! HTML!</h1> </body> </html> """ return HTMLResponse(content=html_content, status_code=200) @app.get("/items/", response_class=HTMLResponse) async def read_items():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 491 bytes - Viewed (0)