- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 2,941 for get2 (0.05 sec)
-
tests/test_serialize_response.py
name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None @app.get("/items/valid", response_model=Item) def get_valid(): return {"name": "valid", "price": 1.0} @app.get("/items/coerce", response_model=Item) def get_coerce(): return {"name": "coerce", "price": "1.0"} @app.get("/items/validlist", response_model=List[Item]) def get_validlist(): return [
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 03 12:29:07 UTC 2020 - 1.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/SparseImmutableTable.java
Cell<R, C, V> cell = cellList.get(i); R rowKey = cell.getRowKey(); C columnKey = cell.getColumnKey(); V value = cell.getValue(); /* * These requireNonNull calls are safe because we construct the maps to hold all the provided * cells. */ cellRowIndices[i] = requireNonNull(rowIndex.get(rowKey)); Map<C, V> thisRow = requireNonNull(rows.get(rowKey));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an.py
def test_no_token(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token(): response = client.get("/users/me", headers={"Authorization": "Bearer johndoe"}) assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8K bytes - Viewed (0) -
internal/config/etcd/etcd.go
Level: zap.NewAtomicLevelAt(zap.FatalLevel), Encoding: "console", } cfg.Endpoints = etcdEndpoints cfg.CoreDNSPath = env.Get(EnvEtcdCoreDNSPath, kvs.Get(CoreDNSPath)) // Default path prefix for all keys on etcd, other than CoreDNSPath. cfg.PathPrefix = env.Get(EnvEtcdPathPrefix, kvs.Get(PathPrefix)) if etcdSecure { cfg.TLS = &tls.Config{ RootCAs: rootCAs, PreferServerCipherSuites: true,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 28 23:17:22 UTC 2024 - 5.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java
* @return This request, never {@code null}. */ MetadataResolutionRequest setOffline(boolean offline); /** * Gets the artifact to resolve metadata for. * * @return The artifact to resolve metadata for or {@code null} if not set. */ Artifact getArtifact(); /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
assertEquals(Integer.valueOf(20), map.get(10)); assertEquals(Integer.valueOf(0), map.get(20)); assertEquals(Integer.valueOf(1), map.get(30)); assertEquals(Integer.valueOf(2), map.get(54)); assertEquals(Integer.valueOf(3), map.get(443)); assertEquals(Integer.valueOf(4), map.get(1)); assertEquals(Integer.valueOf(5), cache.get(6)); assertEquals(Integer.valueOf(6), cache.apply(7)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 14.4K bytes - Viewed (0) -
tests/test_security_http_digest.py
app = FastAPI() security = HTTPDigest() @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_digest(): response = client.get("/users/me", headers={"Authorization": "Digest foobar"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer.py
oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", auto_error=True ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
Collection<V> result = multimap().asMap().get(k0()); result.add(v3()); assertContentsAnyOrder(multimap().get(k0()), v0(), v3()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require({SUPPORTS_REMOVE, SUPPORTS_PUT}) public void testPropagatesRemoveThenAddToMultimap() { int oldSize = getNumElements(); Collection<V> result = multimap().asMap().get(k0()); assertTrue(result.remove(v0()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py39.py
def test_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py39 def test_token(client: TestClient): access_token = get_access_token(scope="me", client=client) response = client.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0)