- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 175 for Handlers (0.09 seconds)
-
docs/en/docs/tutorial/handling-errors.md
/// ## Override the default exception handlers { #override-the-default-exception-handlers } **FastAPI** has some default exception handlers. These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data. You can override these exception handlers with your own.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.9K bytes - Click Count (0) -
docs/en/docs/advanced/events.md
{* ../../docs_src/events/tutorial001_py310.py hl[8] *} In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values. You can add more than one event handler function. And your application won't start receiving requests until all the `startup` event handlers have completed. ### `shutdown` event { #shutdown-event }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 7.8K bytes - Click Count (0) -
tests/test_router_events.py
assert client.app_state == {"router": True} @pytest.mark.filterwarnings( r"ignore:\s*on_event is deprecated, use lifespan event handlers instead.*:DeprecationWarning" ) def test_router_async_shutdown_handler(state: State) -> None: """Test that async on_shutdown event handlers are called correctly, for coverage.""" app = FastAPI() @app.get("/") def main() -> dict[str, str]:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 11.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/ProtocolHelper.java
} } /** * Loads protocol handlers from the specified base package by scanning for * Handler classes in subpackages and registering them as web or file protocols * based on their PROTOCOL_TYPE field. * * @param basePackage the base package to scan for protocol handlers */ protected void loadProtocols(final String basePackage) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 13:59:25 GMT 2026 - 12.4K bytes - Click Count (1) -
docs/en/docs/advanced/advanced-dependencies.md
This was changed in version 0.110.0 to fix unhandled memory consumption from forwarded exceptions without a handler (internal server errors), and to make it consistent with the behavior of regular Python code.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9K bytes - Click Count (0) -
src/main/webapp/js/chat.js
filterPanel: $('#filterPanel') }; bindEvents(); autoResizeTextarea(); updateCharCount(); showStatus('ready'); } /** * Bind event handlers */ function bindEvents() { elements.sendBtn.on('click', sendMessage); elements.chatInput.on('keydown', function(e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 01:36:02 GMT 2026 - 30.6K bytes - Click Count (0) -
docs/en/docs/advanced/middleware.md
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. For that, you use `app.add_middleware()` (as in the example for CORS). ```Python from fastapi import FastAPI from unicorn import UnicornMiddleware app = FastAPI()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java
/** * Dispatches an event to all registered handlers for the event name. * * @param event the event to dispatch. */ protected void dispatchEvent(final EventInfo event) { final List<Consumer<EventInfo>> handlers = eventHandlers.get(event.name); if (handlers != null) { for (final Consumer<EventInfo> handler : handlers) { try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 33.3K bytes - Click Count (0) -
docs/ja/docs/tutorial/handling-errors.md
おそらくコードの中で直接使用する必要はないでしょう。 しかし、高度なシナリオのために必要な場合には、カスタムヘッダーを追加することができます: {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *} ## カスタム例外ハンドラのインストール { #install-custom-exception-handlers } カスタム例外ハンドラは[Starletteと同じ例外ユーティリティ](https://www.starlette.dev/exceptions/)を使用して追加することができます。 あなた(または使用しているライブラリ)が`raise`するかもしれないカスタム例外`UnicornException`があるとしましょう。 そして、この例外をFastAPIでグローバルに処理したいと思います。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.2K bytes - Click Count (0) -
CLAUDE.md
│ │ ├── admin/ # Admin controllers ({feature}/ with Action, Forms) │ │ └── api/ # API controllers │ ├── service/ # Business logic services │ ├── pager/ # Pagination handlers │ └── job/ # Background jobs ├── api/ # REST API infrastructure ├── opensearch/ # DBFlute integration for OpenSearch
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 09:48:10 GMT 2026 - 7.8K bytes - Click Count (0)