Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for request (0.17 sec)

  1. fastapi/applications.py

            ```python
            import time
    
            from fastapi import FastAPI, Request
    
            app = FastAPI()
    
    
            @app.middleware("http")
            async def add_process_time_header(request: Request, call_next):
                start_time = time.time()
                response = await call_next(request)
                process_time = time.time() - start_time
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

            actual_response_class = response_class
    
        async def app(request: Request) -> Response:
            response: Union[Response, None] = None
            async with AsyncExitStack() as file_stack:
                try:
                    body: Any = None
                    if body_field:
                        if is_body_form:
                            body = await request.form()
                            file_stack.push_async_callback(body.close)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top