Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Awaitable (0.04 sec)

  1. fastapi/routing.py

    # dependencies' AsyncExitStack
    def request_response(
        func: Callable[[Request], Union[Awaitable[Response], Response]],
    ) -> ASGIApp:
        """
        Takes a function or coroutine `func(request) -> response`,
        and returns an ASGI application.
        """
        f: Callable[[Request], Awaitable[Response]] = (
            func if is_async_callable(func) else functools.partial(run_in_threadpool, func)  # type:ignore
        )
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  2. fastapi/applications.py

            ```python
            import time
            from typing import Awaitable, Callable
    
            from fastapi import FastAPI, Request, Response
    
            app = FastAPI()
    
    
            @app.middleware("http")
            async def add_process_time_header(
                request: Request, call_next: Callable[[Request], Awaitable[Response]]
            ) -> Response:
                start_time = time.time()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/jquery-3.7.1.min.map

    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Oct 26 01:07:52 UTC 2024
    - 131.6K bytes
    - Viewed (0)
Back to top