Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 111 for handleMsg (0.06 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    * `"function"`: start the dependency before the *path operation function* that handles the request, end the dependency after the *path operation function* ends, but **before** the response is sent back to the client. So, the dependency function will be executed **around** the *path operation **function***.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/events.md

    You can probably skip this part.
    
    ///
    
    There's an alternative way to define this logic to be executed during *startup* and during *shutdown*.
    
    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)
  6. 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)
  7. tests/test_compat.py

        # class "feature"
        assert is_uploadfile_sequence_annotation(list[str] | list[UploadFile])
    
    
    def test_serialize_sequence_value_with_optional_list():
        """Test that serialize_sequence_value handles optional lists correctly."""
        from fastapi._compat import v2
    
        field_info = FieldInfo(annotation=list[str] | None)
        field = v2.ModelField(name="items", field_info=field_info)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  8. docs/ru/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## Установка пользовательских обработчиков исключений { #install-custom-exception-handlers }
    
    Вы можете добавить пользовательские обработчики исключений с помощью [тех же утилит обработки исключений из Starlette](https://www.starlette.dev/exceptions/).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 14K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## Benutzerdefinierte Exceptionhandler installieren { #install-custom-exception-handlers }
    
    Sie können benutzerdefinierte Exceptionhandler mit [denselben Exception-Werkzeugen von Starlette](https://www.starlette.dev/exceptions/) hinzufügen.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  10. docs/uk/docs/tutorial/handling-errors.md

    Але якщо вам знадобиться це для складного сценарію, ви можете додати власні заголовки:
    
    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## Встановлення власних обробників виключень { #install-custom-exception-handlers }
    
    Ви можете додати власні обробники виключень за допомогою [тих самих утиліт для виключень зі Starlette](https://www.starlette.dev/exceptions/).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 13.9K bytes
    - Click Count (0)
Back to Top