- Sort Score
- Num 10 results
- Language All
Results 641 - 650 of 4,168 for get (0.02 seconds)
-
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: str | None = 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"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java
final String forumLink = systemHelper.getForumLink(); if (StringUtil.isNotBlank(forumLink)) { runtime.registerData("forumLink", forumLink); } } /** * Get the action role. * @return The action role. */ protected abstract String getActionRole(); /** * Writes data to the specified file path. *
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 13:57:12 GMT 2026 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
// Then Map<String, Object> context = exception.getContext(); assertEquals("server.example.com", context.get("host")); assertEquals(445, context.get("port")); assertEquals("/share/file.txt", context.get("path")); assertEquals("testuser", context.get("user")); } @Test @DisplayName("Should identify error categories correctly") void testErrorCategories() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.1K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DependencyManagementTest.java
dm.addDependency(d1); assertNotNull(dm.getDependencies()); assertEquals(1, dm.getDependencies().size()); dm.getDependencies().get(0).setArtifactId("myArtifactId"); assertEquals("myArtifactId", dm.getDependencies().get(0).getArtifactId()); dm.setDependencies(null); assertNotNull(dm.getDependencies()); assertEquals(0, dm.getDependencies().size()); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java
boolean hasChanges = false; // Get parent GAV String parentGroupId = parentElement.childText(MavenPomElements.Elements.GROUP_ID); String parentVersion = parentElement.childText(MavenPomElements.Elements.VERSION); // Get child GAV String childGroupId = root.childText(MavenPomElements.Elements.GROUP_ID);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 27.6K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/LocalCache.java
@Override public @Nullable V get(@Nullable Object key) { if (key == null) { return null; } int hash = hash(key); return segmentFor(hash).get(key, hash); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this V get(K key, CacheLoader<? super K, V> loader) throws ExecutionException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 143.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Synchronized.java
synchronized (mutex) { return delegate().addAll(index, c); } } @Override public E get(int index) { synchronized (mutex) { return delegate().get(index); } } @Override public int indexOf(@Nullable Object o) { synchronized (mutex) { return delegate().indexOf(o); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 53K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableList.java
@Override protected E get(int index) { return ImmutableList.this.get(index); } }; } @Override public void forEach(Consumer<? super E> consumer) { checkNotNull(consumer); int n = size(); for (int i = 0; i < n; i++) { consumer.accept(get(i)); } } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 30.6K bytes - Click Count (0) -
tests/test_security_api_key_query_description.py
user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_api_key(): response = client.get("/users/me?key=secret") assert response.status_code == 200, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
assertThat(client.canceled).isFalse() taskFaker.advanceUntil(ns(RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS)) assertThat(client.canceled).isTrue() client.processNextFrame() // This won't get a frame, but it will get a closed pipe. client.listener.assertFailure(IOException::class.java, "canceled") taskFaker.runTasks() } @Test fun clientCloseCancelsConnectionAfterCustomTimeout() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 18.7K bytes - Click Count (0)