Search Options

Results per page
Sort
Preferred Languages
Advance

Results 881 - 890 of 3,549 for getS (0.02 sec)

  1. tests/test_dependency_after_yield_raise.py

    
    app = FastAPI()
    
    
    @app.get("/catching")
    def catching(d: Annotated[str, Depends(catching_dep)]) -> Any:
        raise CustomError("Simulated error during streaming")
    
    
    @app.get("/broken")
    def broken(d: Annotated[str, Depends(broken_dep)]) -> Any:
        return {"message": "all good?"}
    
    
    client = TestClient(app)
    
    
    def test_catching():
        response = client.get("/catching")
        assert response.status_code == 418
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                return !exists;
            });
        }
    
        /**
         * Get detailed health statistics
         */
        public PoolHealthMetrics getHealthMetrics() {
            return new PoolHealthMetrics(connections.size(), nonPooledConnections.size(), activeConnections.get(), maxPoolSize,
                    totalHealthChecks.get(), failedHealthChecks.get(), connectionsRemoved.get(), connectionMetrics.size(),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
        assertThrows(TimeoutException.class, () -> future.get(0, MILLISECONDS));
        nested.set("foo");
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        assertEquals("foo", future.get());
      }
    
      private static class Foo {}
    
      private static class FooChild extends Foo {}
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 17:49:12 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java

            project1.getDependencies().add(createDependency(project2));
    
            projects = new ProjectSorter(projects).getSortedProjects();
    
            assertEquals(project2, projects.get(0));
            assertEquals(project1, projects.get(1));
        }
    
        @Test
        void testMatchingGroupIdsDifferentArtifactIds() throws Exception {
            List<MavenProject> projects = new ArrayList<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

            value: String,
          ) {
            builder.password(value)
          }
    
          override operator fun get(url: HttpUrl): String = url.password
        },
    
        HOST {
          override fun urlString(value: String): String = "http://a${value}z.com/"
    
          override fun encodedValue(url: HttpUrl): String = get(url)
    
          override operator fun set(
            builder: HttpUrl.Builder,
            value: String,
          ) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. tests/test_openapi_separate_input_output_schemas.py

                },
            ]
        )
    
    
    def test_read_items():
        client = get_app_client()
        client_no = get_app_client(separate_input_output_schemas=False)
        response = client.get("/items/")
        response2 = client_no.get("/items/")
        assert response.status_code == response2.status_code == 200, response.text
        assert (
            response.json()
            == response2.json()
            == [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  7. docs_src/path_params_numeric_validations/tutorial003_py39.py

    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(*, item_id: int = Path(title="The ID of the item to get"), q: str):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 268 bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            IpAttempts ip = ipAttempts.get(sourceIp);
            if (ip != null) {
                ip.reset();
                log.info("Manually unblocked IP: {}", sourceIp);
                return true;
            }
            return false;
        }
    
        /**
         * Get statistics
         */
        public RateLimiterStats getStats() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/simple-oauth2.md

    After authenticating in the system, you will see it like:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### Get your own user data { #get-your-own-user-data }
    
    Now use the operation `GET` with the path `/users/me`.
    
    You will get your user's data, like:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "******@****.***",
      "full_name": "John Doe",
      "disabled": false,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py

    from docs_src.behind_a_proxy.tutorial003_py39 import app
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World", "root_path": "/api/v1"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == snapshot(
            {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top