Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 438 for router (0.06 sec)

  1. test-site/conf/application.conf

    # application.global=Global
    
    # Router
    # ~~~~~
    # Define the Router object to use for this application.
    # This router will be looked up first when the application is starting up,
    # so make sure this is the entry point.
    # Furthermore, it's assumed your route file is named properly.
    # So for an application router like `conf/my.application.Router`,
    # you may need to define a router file `my.application.routes`.
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 2K bytes
    - Viewed (0)
  2. istioctl/pkg/authz/testdata/configdump.yaml

               "http_filters": [
                {
                 "name": "envoy.filters.http.router",
                 "typed_config": {
                  "@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
                 }
                }
               ]
              }
             }
            ]
           }
          ]
         },
         "last_updated": "2023-06-20T09:07:41.865Z"
        },
        {
         "listener": {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 21 14:20:23 UTC 2023
    - 206.7K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/bigger-applications.md

    ///
    
    ### โŽ ๐Ÿ“› ๐Ÿ’ฅ
    
    ๐Ÿ‘ฅ ๐Ÿญ ๐Ÿ” `items` ๐Ÿ”—, โ†ฉ๏ธ ๐Ÿญ ๐Ÿšฎ ๐Ÿ”ข `router`.
    
    ๐Ÿ‘‰ โ†ฉ๏ธ ๐Ÿ‘ฅ โœ”๏ธ โž•1๏ธโƒฃ ๐Ÿ”ข ๐Ÿ“› `router` ๐Ÿ” `users`.
    
    ๐Ÿšฅ ๐Ÿ‘ฅ โœ”๏ธ ๐Ÿ—„ 1๏ธโƒฃ โฎ๏ธ ๐ŸŽ, ๐Ÿ’–:
    
    ```Python
    from .routers.items import router
    from .routers.users import router
    ```
    
    `router` โšช๏ธโžก๏ธ `users` ๐Ÿ”œ ๐Ÿ“ 1๏ธโƒฃ โšช๏ธโžก๏ธ `items` & ๐Ÿ‘ฅ ๐Ÿšซ๐Ÿ”œ ๐Ÿ’ช โš™๏ธ ๐Ÿ‘ซ ๐ŸŽ ๐Ÿ•ฐ.
    
    , ๐Ÿ’ช โš™๏ธ ๐Ÿ‘ฏโ€โ™‚๏ธ ๐Ÿ‘ซ ๐ŸŽ ๐Ÿ“, ๐Ÿ‘ฅ ๐Ÿ—„ ๐Ÿ” ๐Ÿ”—:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. tests/test_router_events.py

        sub_router = APIRouter(lifespan=subrouter_lifespan)
    
        router = APIRouter(lifespan=router_lifespan)
        router.include_router(sub_router)
    
        app = FastAPI(lifespan=lifespan)
        app.include_router(router)
    
        @app.get("/")
        def main(request: Request) -> Dict[str, str]:
            assert request.state.app
            assert request.state.router
            assert request.state.sub_router
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 24 19:09:52 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. fastapi/routing.py

            if responses is None:
                responses = {}
            for route in router.routes:
                if isinstance(route, APIRoute):
                    combined_responses = {**responses, **route.responses}
                    use_response_class = get_value_or_default(
                        route.response_class,
                        router.default_response_class,
                        default_response_class,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/bigger-applications.md

    Wir importieren das Submodul `items` direkt, anstatt nur seine Variable `router` zu importieren.
    
    Das liegt daran, dass wir im Submodul `users` auch eine weitere Variable namens `router` haben.
    
    Wenn wir eine nach der anderen importiert hรคtten, etwa:
    
    ```Python
    from .routers.items import router
    from .routers.users import router
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tests/test_custom_route_class.py

    
    @router_b.get("/")
    def get_b():
        return {"msg": "B"}
    
    
    @router_c.get("/")
    def get_c():
        return {"msg": "C"}
    
    
    router_b.include_router(router=router_c, prefix="/c")
    router_a.include_router(router=router_b, prefix="/b")
    app.include_router(router=router_a, prefix="/a")
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. docs_src/custom_request_and_route/tutorial003.py

                response.headers["X-Response-Time"] = str(duration)
                print(f"route duration: {duration}")
                print(f"route response: {response}")
                print(f"route response headers: {response.headers}")
                return response
    
            return custom_route_handler
    
    
    app = FastAPI()
    router = APIRouter(route_class=TimedRoute)
    
    
    @app.get("/")
    async def not_timed():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 1K bytes
    - Viewed (0)
  9. tests/test_dependency_overrides.py

    
    @router.get("/router-depends/")
    async def router_depends(commons: dict = Depends(common_parameters)):
        return {"in": "router-depends", "params": commons}
    
    
    @router.get("/router-decorator-depends/", dependencies=[Depends(common_parameters)])
    async def router_decorator_depends():
        return {"in": "router-decorator-depends"}
    
    
    app.include_router(router)
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. istioctl/pkg/proxyconfig/testdata/config_dump.json

                          },
                          "http_filters": [
                            {
                              "name": "envoy.filters.http.router",
                              "typed_config": {
                                "@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
                              }
                            }
                          ]
                        }
                      }
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jan 03 23:08:06 UTC 2024
    - 54.8K bytes
    - Viewed (0)
Back to top