Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 770 for scope1 (0.05 seconds)

  1. docs/ja/docs/advanced/advanced-dependencies.md

    ### `yield` と `scope` を伴う依存関係 { #dependencies-with-yield-and-scope }
    
    バージョン 0.121.0 で、`yield` を使う依存関係に対して `Depends(scope="function")` がサポートされました。
    
    `Depends(scope="function")` を使うと、`yield` の後の終了コードは、クライアントへレスポンスが返される前、*path operation 関数* が終了した直後に実行されます。
    
    そして、`Depends(scope="request")`(デフォルト)を使う場合、`yield` の後の終了コードはレスポンス送信後に実行されます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  2. tests/test_security_scopes.py

            return "user"
    
        app = FastAPI()
    
        @app.get("/")
        def endpoint(
            db: Annotated[str, Depends(get_db)],
            user: Annotated[str, Security(get_user, scopes=["read"])],
        ):
            return {"db": db}
    
        return app
    
    
    @pytest.fixture(name="client")
    def client_fixture(app: FastAPI):
        return TestClient(app)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1006 bytes
    - Click Count (0)
  3. api/maven-api-plugin/pom.xml

          <artifactId>maven-api-xml</artifactId>
        </dependency>
        <dependency>
          <groupId>org.junit.jupiter</groupId>
          <artifactId>junit-jupiter-api</artifactId>
          <scope>test</scope>
        </dependency>
      </dependencies>
    
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.modello</groupId>
            <artifactId>modello-maven-plugin</artifactId>
            <executions>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Jun 29 22:37:39 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  4. compat/maven-plugin-api/pom.xml

          <artifactId>maven-resolver-api</artifactId>
        </dependency>
    
        <dependency>
          <groupId>org.junit.jupiter</groupId>
          <artifactId>junit-jupiter-api</artifactId>
          <scope>test</scope>
        </dependency>
      </dependencies>
    
      <build>
        <plugins>
          <plugin>
            <groupId>com.github.siom79.japicmp</groupId>
            <artifactId>japicmp-maven-plugin</artifactId>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Jun 29 22:37:39 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  5. pom.xml

    			<version>1.3.5</version>
    			<optional>true</optional>
    		</dependency>
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>4.13.2</version>
    			<scope>test</scope>
    		</dependency>
    	</dependencies>
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Dec 20 04:15:34 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  6. 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 Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  7. docs/fr/docs/how-to/custom-request-and-route.md

    /// note | Détails techniques
    
    Un `Request` possède un attribut `request.scope`, qui n'est qu'un `dict` Python contenant les métadonnées liées à la requête.
    
    Un `Request` a également un `request.receive`, qui est une fonction pour « recevoir » le corps de la requête.
    
    Le `dict` `scope` et la fonction `receive` font tous deux partie de la spécification ASGI.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  8. docs/es/docs/how-to/custom-request-and-route.md

    /// note | Detalles técnicos
    
    Un `Request` tiene un atributo `request.scope`, que es simplemente un `dict` de Python que contiene los metadatos relacionados con el request.
    
    Un `Request` también tiene un `request.receive`, que es una función para "recibir" el request body.
    
    El `dict` `scope` y la función `receive` son ambos parte de la especificación ASGI.
    
    Y esas dos cosas, `scope` y `receive`, son lo que se necesita para crear una nueva *Request instance*.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  9. benchmarks/src/main/java/org/elasticsearch/common/RoundingBenchmark.java

    import org.openjdk.jmh.annotations.Measurement;
    import org.openjdk.jmh.annotations.Mode;
    import org.openjdk.jmh.annotations.OutputTimeUnit;
    import org.openjdk.jmh.annotations.Param;
    import org.openjdk.jmh.annotations.Scope;
    import org.openjdk.jmh.annotations.Setup;
    import org.openjdk.jmh.annotations.State;
    import org.openjdk.jmh.annotations.Warmup;
    import org.openjdk.jmh.infra.Blackhole;
    
    import java.time.ZoneId;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 16:53:28 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilterTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@link ScopeArtifactFilter}.
     *
     */
    class ScopeArtifactFilterTest {
    
        private Artifact newArtifact(String scope) {
            return new DefaultArtifact("g", "a", "1.0", scope, "jar", "", null);
        }
    
        @Test
        void testIncludeCompile() {
            ScopeArtifactFilter filter = new ScopeArtifactFilter(Artifact.SCOPE_COMPILE);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 3.8K bytes
    - Click Count (0)
Back to Top