Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 795 for Any (0.01 sec)

  1. fastapi/openapi/utils.py

        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], dict[str, Any]
        ],
        separate_input_output_schemas: bool = True,
    ) -> tuple[dict[str, Any], dict[str, Any], dict[str, Any]]:
        path = {}
        security_schemes: dict[str, Any] = {}
        definitions: dict[str, Any] = {}
        assert route.methods is not None, "Methods must be a list"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. fastapi/encoders.py

        set: list,
        UUID: str,
        Url: str,
        AnyUrl: str,
    }
    
    
    def generate_encoders_by_class_tuples(
        type_encoder_map: dict[Any, Callable[[Any], Any]],
    ) -> dict[Callable[[Any], Any], tuple[Any, ...]]:
        encoders_by_class_tuples: dict[Callable[[Any], Any], tuple[Any, ...]] = defaultdict(
            tuple
        )
        for type_, encoder in type_encoder_map.items():
            encoders_by_class_tuples[encoder] += (type_,)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. .github/labeler.yml

    docs:
      - all:
        - changed-files:
          - any-glob-to-any-file:
            - docs/en/docs/**
            - docs_src/**
          - all-globs-to-all-files:
            - '!fastapi/**'
            - '!pyproject.toml'
            - '!docs/en/data/sponsors.yml'
            - '!docs/en/overrides/main.html'
    
    lang-all:
      - all:
        - changed-files:
          - any-glob-to-any-file:
            - docs/*/docs/**
          - all-globs-to-all-files:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Nov 23 20:10:04 UTC 2025
    - 921 bytes
    - Viewed (0)
  4. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            when(mockSearchBuilder.setScroll(any(Scroll.class))).thenReturn(mockSearchBuilder);
            when(mockSearchBuilder.setSize(10)).thenReturn(mockSearchBuilder);
            when(mockSearchBuilder.setQuery(any())).thenReturn(mockSearchBuilder);
            when(mockSearchBuilder.execute()).thenReturn(mockSearchFuture);
            when(mockSearchFuture.actionGet(anyLong(), any(TimeUnit.class))).thenReturn(mockSearchResponse);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  5. tests/test_dependency_after_yield_streaming.py

    
    @app.get("/data")
    def get_data(session: SessionDep) -> Any:
        data = list(session)
        return data
    
    
    @app.get("/stream-simple")
    def get_stream_simple(session: SessionDep) -> Any:
        def iter_data():
            yield from ["x", "y", "z"]
    
        return StreamingResponse(iter_data())
    
    
    @app.get("/stream-session")
    def get_stream_session(session: SessionDep) -> Any:
        def iter_data():
            yield from session
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. fastapi/exceptions.py

            ],
            detail: Annotated[
                Any,
                Doc(
                    """
                    Any data to be sent to the client in the `detail` key of the JSON
                    response.
                    """
                ),
            ] = None,
            headers: Annotated[
                Optional[dict[str, str]],
                Doc(
                    """
                    Any headers to send to the client in the response.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/response-directly.md

    In fact, you can return any `Response` or any sub-class of it.
    
    /// tip
    
    `JSONResponse` itself is a sub-class of `Response`.
    
    ///
    
    And when you return a `Response`, **FastAPI** will pass it directly.
    
    It won't do any data conversion with Pydantic models, it won't convert the contents to any type, etc.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/middleware.md

    A "middleware" is a function that works with every **request** before it is processed by any specific *path operation*. And also with every **response** before returning it.
    
    * It takes each **request** that comes to your application.
    * It can then do something to that **request** or run any needed code.
    * Then it passes the **request** to be processed by the rest of the application (by some *path operation*).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. tests/test_request_params/test_body/utils.py

    from typing import Any
    
    
    def get_body_model_name(openapi: dict[str, Any], path: str) -> str:
        body = openapi["paths"][path]["post"]["requestBody"]
        body_schema = body["content"]["application/json"]["schema"]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 268 bytes
    - Viewed (0)
  10. fastapi/applications.py

                ),
            ] = None,
            exception_handlers: Annotated[
                Optional[
                    dict[
                        Union[int, type[Exception]],
                        Callable[[Request, Any], Coroutine[Any, Any, Response]],
                    ]
                ],
                Doc(
                    """
                    A dictionary with handlers for exceptions.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
Back to top