- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 398 for Accept4 (0.06 seconds)
-
android/guava-testlib/src/com/google/common/testing/FakeTicker.java
@SuppressWarnings("GoodTime") // should accept a java.time.Duration @CanIgnoreReturnValue public FakeTicker advance(long time, TimeUnit timeUnit) { return advance(timeUnit.toNanos(time)); } /** Advances the ticker value by {@code nanoseconds}. */ @SuppressWarnings("GoodTime") // should accept a java.time.Duration @CanIgnoreReturnValue public FakeTicker advance(long nanoseconds) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 4.1K bytes - Click Count (0) -
tests/test_dependency_after_yield_websockets.py
@app.websocket("/ws") async def websocket_endpoint(websocket: WebSocket, session: SessionDep): await websocket.accept() for item in session: await websocket.send_text(f"{item}") @app.websocket("/ws-broken") async def websocket_endpoint_broken(websocket: WebSocket, session: BrokenSessionDep): await websocket.accept() for item in session: await websocket.send_text(f"{item}") # pragma no cover
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2K bytes - Click Count (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt
@JvmStatic fun createFactory(callFactory: Call.Factory): EventSource.Factory = EventSource.Factory { request, listener -> val actualRequest = if (request.header("Accept") == null) { request.newBuilder().addHeader("Accept", "text/event-stream").build() } else { request } RealEventSource(actualRequest, listener).apply { connect(callFactory) } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 03 07:51:20 GMT 2025 - 1.6K bytes - Click Count (0) -
cmd/post-policy_test.go
// Add the bucket condition, only accept buckets equal to the one passed. bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName) // Add the key condition, only accept keys equal to the one passed. keyConditionStr := fmt.Sprintf(`["eq", "$key", "%s/upload.txt"]`, objectKey) // Add content length condition, only accept content sizes of a given length.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 30.6K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java
} catch (IOException e) { throw UncheckedException.throwAsUncheckedException(e); } } /** * Automatically accept changes that are valid property upgrades of a getter or setter. * * Here we automatically accept the following cases: * - A setter `setX` of an upgraded property is removed * - A boolean `isX` of an upgraded property is removed
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 9.3K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy
private static List<Boolean> typeParametersNullabilityOf(CtClass ctClass) { NullableClassTypeParametersVisitor visitor = new NullableClassTypeParametersVisitor() new ClassReader(byteCodeFrom(ctClass)).accept(visitor, 0) return visitor.typeParametersNullability } static class NullableClassTypeParametersVisitor extends ClassVisitor { List<Boolean> typeParametersNullability = []Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Oct 27 09:26:32 GMT 2025 - 15.4K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java
Request request = new Request.Builder() .url("https://api.github.com/repos/square/okhttp/issues") .header("User-Agent", "OkHttp Headers.java") .addHeader("Accept", "application/json; q=0.5") .addHeader("Accept", "application/vnd.github.v3+json") .build(); try (Response response = client.newCall(request).execute()) {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.6K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/ExecutionError.java
* `public final Error getCause()`.) */ /** * Creates a new instance with {@code null} as its detail message and no cause. * * @deprecated Prefer {@linkplain ExecutionError(Error)} a constructor that accepts a cause: Users * of this class typically expect for instances to have a non-null cause. At the moment, you * can <i>usually</i> still preserve behavior by passing an explicit {@code null} cause. Note,
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/logging/ProjectBuildLogAppender.java
public ProjectBuildLogAppender(BuildEventListener buildEventListener) { this.buildEventListener = buildEventListener; MavenSimpleLogger.setLogSink(this::accept); } protected void accept(String message) { String projectId = MDC.get(KEY_PROJECT_ID); buildEventListener.projectLogMessage(projectId, message); } @OverrideCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
forEach(prefix, consumer); } long size = spliterator.getExactSizeIfKnown(); long[] counter = {0}; spliterator.forEachRemaining( e -> { consumer.accept(e); counter[0]++; }); if (size >= 0) { assertEquals(size, counter[0]); } } }, ALTERNATE_ADVANCE_AND_SPLIT { @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 12.1K bytes - Click Count (0)