Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 573 for scope1 (0.05 seconds)

  1. docs_src/dependencies/tutorial008e_an_py39.py

    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: Annotated[str, Depends(get_username, scope="function")]):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 03 10:12:49 GMT 2025
    - 329 bytes
    - Click Count (0)
  2. docs_src/behind_a_proxy/tutorial003_py39.py

        ],
        root_path="/api/v1",
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 405 bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

            }
        }
    
        interface DependenciesPointer extends Pointer {
            /**
             * Returns the dependency scope this pointer applies to.
             *
             * @return the dependency scope, or "all" if not specified
             */
            String scope(); // default: all
    
            /**
             * Returns the type of pointer, which is always DEPENDENCIES for a DependenciesPointer.
             *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. docs_src/behind_a_proxy/tutorial004_py39.py

        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 437 bytes
    - Click Count (0)
  5. tests/test_security_oauth2_password_bearer_optional_description.py

                }
            },
            "components": {
                "securitySchemes": {
                    "OAuth2PasswordBearer": {
                        "type": "oauth2",
                        "flows": {"password": {"scopes": {}, "tokenUrl": "/token"}},
                        "description": "OAuth2PasswordBearer security scheme",
                    }
                }
            },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.2K bytes
    - Click Count (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

         * functionality. This implementation uses request-scoped caching ({@link CacheRetention#REQUEST_SCOPED})
         * since it represents a POM file that is actively being built and may change during the build process.
         * <p>
         * The request-scoped retention policy ensures that:
         * <ul>
         *   <li>Changes to the POM file during the build are detected</li>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

        //
        // ----------------------------------------------------------------------
    
        /** Specify the required dependencies in a specified scope */
        private String dependencyResolutionRequired = null;
    
        /**
         * The scope of (transitive) dependencies that should be collected but not resolved.
         * @since 3.0-alpha-3
         */
        private String dependencyCollectionRequired;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  8. gradlew.bat

    @rem ##########################################################################
    @rem
    @rem  Gradle startup script for Windows
    @rem
    @rem ##########################################################################
    
    @rem Set local scope for the variables with windows NT shell
    if "%OS%"=="Windows_NT" setlocal
    
    set DIRNAME=%~dp0
    if "%DIRNAME%"=="" set DIRNAME=.
    @rem This is normally unused
    set APP_BASE_NAME=%~n0
    set APP_HOME=%DIRNAME%
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Sep 18 20:55:41 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  9. docs/en/docs/reference/dependencies.md

    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    For many scenarios, you can handle security (authorization, authentication, etc.) with dependencies, using `Depends()`.
    
    But when you want to also declare OAuth2 scopes, you can use `Security()` instead of `Depends()`.
    
    You can import `Security()` directly from `fastapi`:
    
    ```python
    from fastapi import Security
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 671 bytes
    - Click Count (0)
  10. tests/test_tutorial/test_security/test_tutorial002.py

                }
            },
            "components": {
                "securitySchemes": {
                    "OAuth2PasswordBearer": {
                        "type": "oauth2",
                        "flows": {"password": {"scopes": {}, "tokenUrl": "token"}},
                    }
                },
            },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 2.2K bytes
    - Click Count (0)
Back to Top