- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for rainbow (0.04 sec)
-
docs/em/docs/advanced/middleware.md
app = SomeASGIApp() new_app = UnicornMiddleware(app, some_config="rainbow") ``` โ๏ธ FastAPI (๐ค ๐) ๐ ๐ ๐ โซ๏ธ ๐ โ ๐ญ ๐ ๐ ๐ ๏ธ ๐ต ๐ฝ โ & ๐ โ ๐โ๐ฆบ ๐ท โ. ๐, ๐ โ๏ธ `app.add_middleware()` (๐ผ โ). ```Python from fastapi import FastAPI from unicorn import UnicornMiddleware app = FastAPI() app.add_middleware(UnicornMiddleware, some_config="rainbow") ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/es/docs/advanced/middleware.md
Entonces, en la documentaciรณn de middlewares ASGI de terceros probablemente te indicarรกn que hagas algo como: ```Python from unicorn import UnicornMiddleware app = SomeASGIApp() new_app = UnicornMiddleware(app, some_config="rainbow") ``` Pero FastAPI (en realidad Starlette) proporciona una forma mรกs simple de hacerlo que asegura que los middlewares internos manejen errores del servidor y los controladores de excepciones personalizadas funcionen correctamente.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/pt/docs/advanced/middleware.md
```Python from unicorn import UnicornMiddleware app = SomeASGIApp() new_app = UnicornMiddleware(app, some_config="rainbow") ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Wed Oct 30 20:00:22 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/de/docs/advanced/middleware.md
```Python from unicorn import UnicornMiddleware app = SomeASGIApp() new_app = UnicornMiddleware(app, some_config="rainbow") ``` Aber FastAPI (eigentlich Starlette) bietet eine einfachere Mรถglichkeit, welche sicherstellt, dass die internen Middlewares zur Behandlung von Serverfehlern und benutzerdefinierten Exceptionhandlern ordnungsgemรคร funktionieren.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/en/docs/advanced/middleware.md
```Python from unicorn import UnicornMiddleware app = SomeASGIApp() new_app = UnicornMiddleware(app, some_config="rainbow") ``` But FastAPI (actually Starlette) provides a simpler way to do it that makes sure that the internal middlewares handle server errors and custom exception handlers work properly.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:59:07 UTC 2025 - 4.3K bytes - Viewed (0) -
docs/ko/docs/advanced/middlewares.md
new_app = UnicornMiddleware(app, some_config="rainbow") ``` ํ์ง๋ง ๋ด๋ถ ๋ฏธ๋ค์จ์ด๊ฐ ์๋ฒ ์ค๋ฅ๋ฅผ ์ฒ๋ฆฌํ๊ณ ์ฌ์ฉ์ ์ ์ ์์ธ ์ฒ๋ฆฌ๊ธฐ๊ฐ ์ ๋๋ก ์๋ํ๋๋ก ํ๋ ๋ ๊ฐ๋จํ ๋ฐฉ๋ฒ์ ์ ๊ณตํ๋ FastAPI(์ค์ ๋ก๋ Starlette)๊ฐ ์์ต๋๋ค. ์ด๋ฅผ ์ํด `app.add_middleware()`๋ฅผ ์ฌ์ฉํฉ๋๋ค(CORS์ ์์์์ ๊ฐ์ด). ```Python from fastapi import FastAPI from unicorn import UnicornMiddleware app = FastAPI() app.add_middleware(UnicornMiddleware, some_config="rainbow") ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Tue Nov 26 22:35:09 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/em/docs/tutorial/handling-errors.md
โ๏ธ โซ๏ธ ๐ ๐ต `unicorn_exception_handler`. , ๐ ๐ ๐จ ๐งน โ, โฎ๏ธ ๐บ๐ธ๐ ๐ ๐ `418` & ๐ป ๐: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` /// note | ๐ก โน ๐ ๐ช โ๏ธ `from starlette.requests import Request` & `from starlette.responses import JSONResponse`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/es/docs/tutorial/handling-errors.md
Pero serรก manejado por el `unicorn_exception_handler`. Asรญ que recibirรกs un error limpio, con un cรณdigo de estado HTTP de `418` y un contenido JSON de: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` /// note | Nota Tรฉcnica Tambiรฉn podrรญas usar `from starlette.requests import Request` y `from starlette.responses import JSONResponse`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 9.6K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
But it will be handled by the `unicorn_exception_handler`. So, you will receive a clean error, with an HTTP status code of `418` and a JSON content of: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` /// note | Technical Details You could also use `from starlette.requests import Request` and `from starlette.responses import JSONResponse`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0)