- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for days (0.4 sec)
-
docs/de/docs/advanced/custom-response.md
Auf diese Weise können wir das Ganze in einen `with`-Block einfügen und so sicherstellen, dass das dateiartige Objekt nach Abschluss geschlossen wird. !!! tip "Tipp" Beachten Sie, dass wir, da wir Standard-`open()` verwenden, welches `async` und `await` nicht unterstützt, hier die Pfadoperation mit normalen `def` deklarieren.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 13:05:12 GMT 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
```json {"message": "Hello World"} ``` ...this response will return: ```json { "message": "Hello World" } ``` Of course, you will probably find much better ways to take advantage of this than formatting JSON. 😉 ## Default response class When creating a **FastAPI** class instance or an `APIRouter` you can specify which response class to use by default.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0)