- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 179 for handleMsg (0.07 seconds)
-
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/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) -
cmd/admin-handlers-users_test.go
Aditya Manthramurthy <******@****.***> 1760547645 -0700
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Oct 15 17:00:45 GMT 2025 - 50.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/query/QueryProcessor.java
} private static final Logger logger = LogManager.getLogger(QueryProcessor.class); /** * Map of query commands indexed by query class simple names. * Used to lookup appropriate command handlers for different query types. */ protected Map<String, QueryCommand> queryCommandMap = new HashMap<>(); /** * List of filters that will be applied during query processing.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 7.2K bytes - Click Count (0) -
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/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) -
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) -
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) -
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) -
src/main/java/org/codelibs/fess/cors/CorsHandlerFactory.java
import java.util.HashMap; import java.util.Map; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; /** * Factory for managing CORS handlers based on origin. * Maintains a registry of CORS handlers for different origins and provides lookup functionality. */ public class CorsHandlerFactory { /** * Creates a new instance of CorsHandlerFactory. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 2.2K bytes - Click Count (0)