Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,421 for prepends (0.18 sec)

  1. docs_src/dependencies/tutorial008_an_py39.py

    from fastapi import Depends
    
    
    async def dependency_a():
        dep_a = generate_dep_a()
        try:
            yield dep_a
        finally:
            dep_a.close()
    
    
    async def dependency_b(dep_a: Annotated[DepA, Depends(dependency_a)]):
        dep_b = generate_dep_b()
        try:
            yield dep_b
        finally:
            dep_b.close(dep_a)
    
    
    async def dependency_c(dep_b: Annotated[DepB, Depends(dependency_b)]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 521 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial005_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Cookie, Depends, FastAPI
    
    app = FastAPI()
    
    
    def query_extractor(q: Union[str, None] = None):
        return q
    
    
    def query_or_cookie_extractor(
        q: Annotated[str, Depends(query_extractor)],
        last_query: Annotated[Union[str, None], Cookie()] = None,
    ):
        if not q:
            return last_query
        return q
    
    
    @app.get("/items/")
    async def read_query(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 529 bytes
    - Viewed (0)
  3. docs_src/bigger_applications/app_an_py39/main.py

    from fastapi import Depends, FastAPI
    
    from .dependencies import get_query_token, get_token_header
    from .internal import admin
    from .routers import items, users
    
    app = FastAPI(dependencies=[Depends(get_query_token)])
    
    
    app.include_router(users.router)
    app.include_router(items.router)
    app.include_router(
        admin.router,
        prefix="/admin",
        tags=["admin"],
        dependencies=[Depends(get_token_header)],
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 552 bytes
    - Viewed (0)
  4. docs_src/security/tutorial004.py

        return user
    
    
    async def get_current_active_user(current_user: User = Depends(get_current_user)):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: OAuth2PasswordRequestForm = Depends(),
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs_src/security/tutorial004_an_py310.py

    
    async def get_current_active_user(
        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs_src/dependencies/tutorial006_an.py

        return x_key
    
    
    @app.get("/items/", dependencies=[Depends(verify_token), Depends(verify_key)])
    async def read_items():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 643 bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial006_an_py39.py

        return x_key
    
    
    @app.get("/items/", dependencies=[Depends(verify_token), Depends(verify_key)])
    async def read_items():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 633 bytes
    - Viewed (0)
  8. tools/packaging/packaging.mk

    		--config-files /var/lib/istio/envoy/envoy_bootstrap_tmpl.json \
    		--config-files /var/lib/istio/envoy/sidecar.env \
    		--description "Istio Sidecar" \
    		--depends iproute \
    		--depends iptables \
    		--depends sudo \
    		--depends hostname \
    		$(RPM_COMPRESSION) \
    		$(SIDECAR_FILES)
    
    # Package the sidecar deb file.
    deb/fpm:
    	rm -f ${TARGET_OUT_LINUX}/release/istio-sidecar.deb
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 06 19:54:32 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. testing/performance/src/templates/project-with-source/build.xml

        </target>
    
        <target name="compileTest" depends="compile">
            <mkdir dir="\${test.classes.dir}"/>
            <javac srcdir="\${test.src.dir}" destdir="\${test.classes.dir}">
                <classpath>
                    <path location="\${classes.dir}"/>
                    <fileset dir="\${lib.dir}"/>
                </classpath>
            </javac>
        </target>
    
        <target name="test" depends="compile, compileTest">
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/html/template/content.go

    	//
    	// Use of this type presents a security risk:
    	// the encapsulated content should come from a trusted source,
    	// as it will be included verbatim in the template output.
    	HTML string
    
    	// HTMLAttr encapsulates an HTML attribute from a trusted source,
    	// for example, ` dir="ltr"`.
    	//
    	// Use of this type presents a security risk:
    	// the encapsulated content should come from a trusted source,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:30:25 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top