Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 112 for Sanders (0.22 sec)

  1. docs_src/additional_status_codes/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[str | None, Body()] = None,
        size: Annotated[int | None, Body()] = None,
    ):
        if item_id in items:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 686 bytes
    - Viewed (0)
  2. docs_src/events/tutorial001.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    items = {}
    
    
    @app.on_event("startup")
    async def startup_event():
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 283 bytes
    - Viewed (0)
  3. docs/en/docs/advanced/testing-events.md

    # Testing Events: startup - shutdown
    
    When you need your event handlers (`startup` and `shutdown`) to run in your tests, you can use the `TestClient` with a `with` statement:
    
    ```Python hl_lines="9-12  20-24"
    {!../../../docs_src/app_testing/tutorial003.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 262 bytes
    - Viewed (0)
  4. src/main/assemblies/files/logging.properties

    handlers=java.util.logging.FileHandler
    .level=INFO
    
    java.util.logging.ConsoleHandler.level=INFO
    java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    
    java.util.logging.FileHandler.level=INFO
    java.util.logging.FileHandler.pattern=${fess.log.path}/server_%g.log
    java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
    java.util.logging.FileHandler.count=10
    
    # Suppress warning logs
    Properties
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Sun Aug 21 11:31:50 GMT 2016
    - 475 bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectIndex.java

     * Provides the positional index of the project
     * </p>
     * <strong>NOTE:</strong> This class is not part of any public api and can be changed or deleted without prior notice.
     *
     * @since 3.0
     */
    // TODO Kristian wonders if this class really is necessary and if it overlaps other concepts.
    public final class ProjectIndex {
    
        private final Map<String, MavenProject> projects;
    
        private final Map<String, Integer> indices;
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. docs/de/docs/how-to/configure-swagger-ui.md

    Um beispielsweise `deepLinking` zu deaktivieren, könnten Sie folgende Einstellungen an `swagger_ui_parameters` übergeben:
    
    ```Python hl_lines="3"
    {!../../../docs_src/configure_swagger_ui/tutorial003.py!}
    ```
    
    ## Andere Parameter der Swagger-Oberfläche
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:17:49 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/async-tests.md

    ## Andere asynchrone Funktionsaufrufe
    
    Da die Testfunktion jetzt asynchron ist, können Sie in Ihren Tests neben dem Senden von Requests an Ihre FastAPI-Anwendung jetzt auch andere `async`hrone Funktionen aufrufen (und `await`en), genau so, wie Sie diese an anderer Stelle in Ihrem Code aufrufen würden.
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:25:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. cmd/batchjobmetric_string.go

    // Code generated by "stringer -type=batchJobMetric -trimprefix=batchJobMetric batch-handlers.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[batchJobMetricReplication-0]
    	_ = x[batchJobMetricKeyRotation-1]
    	_ = x[batchJobMetricExpire-2]
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 797 bytes
    - Viewed (0)
  9. maven-core/src/site/apt/index.apt

    * Reference Documentation
    
     * {{{./lifecycles.html}lifecycles}} and {{{./default-bindings.html}plugin bindings to <<<default>>> lifecycle}},
    
     * {{{./artifact-handlers.html}default artifact handlers}}, to manage {{{../maven-model/maven.html#class_dependency}dependency types}},
    
     * {{{./extension.html}extension descriptor}} and {{{./core-extensions.html}core extensions}},
    
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jun 14 05:48:39 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  10. docs_src/handling_errors/tutorial006.py

    from fastapi import FastAPI, HTTPException
    from fastapi.exception_handlers import (
        http_exception_handler,
        request_validation_exception_handler,
    )
    from fastapi.exceptions import RequestValidationError
    from starlette.exceptions import HTTPException as StarletteHTTPException
    
    app = FastAPI()
    
    
    @app.exception_handler(StarletteHTTPException)
    async def custom_http_exception_handler(request, exc):
        print(f"OMG! An HTTP error!: {repr(exc)}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Aug 09 11:10:33 GMT 2020
    - 928 bytes
    - Viewed (0)
Back to top