- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 1,254 for Try (0.02 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java
.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()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println("Server: " + response.header("Server"));
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) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenContext.java
} public SimplexTransferListener simplexTransferListener; public Maven maven; @Override public void doCloseContainer() throws Exception { try { super.doCloseContainer(); } finally { maven = null; } } @Override public MavenOptions options() { return (MavenOptions) super.options(); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 1.7K bytes - Click Count (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginEntry.kt
import java.util.jar.JarEntry import java.util.jar.JarFile data class PluginEntry(val pluginId: String, val implementationClass: String) fun pluginEntriesFrom(jar: File): List<PluginEntry> = try { JarFile(jar, false).use { jarFile -> jarFile.entries().asSequence().filter { isGradlePluginPropertiesFile(it) }.map { pluginEntry ->
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Jun 28 08:29:28 GMT 2024 - 1.8K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_an_py310.py
def get_route_handler(self) -> Callable: original_route_handler = super().get_route_handler() async def custom_route_handler(request: Request) -> Response: try: return await original_route_handler(request) except RequestValidationError as exc: body = await request.body() detail = {"errors": exc.errors(), "body": body.decode()}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 974 bytes - Click Count (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
} val multimap = mapOf("Set-Cookie" to cookieStrings) try { cookieHandler.put(url.toUri(), multimap) } catch (e: IOException) { Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e) } } override fun loadForRequest(url: HttpUrl): List<Cookie> { val cookieHeaders = try { // The RI passes all headers. We don't have 'em, so we don't pass 'em!Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 3.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/HostSpecifierTest.java
assertTrue(HostSpecifier.isValid(spec)); } private void assertBad(String spec) { try { HostSpecifier.fromValid(spec); fail("Should have thrown IllegalArgumentException: " + spec); } catch (IllegalArgumentException expected) { } try { HostSpecifier.from(spec); fail("Should have thrown ParseException: " + spec); } catch (ParseException expected) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java
collection.containsAll(MinimalCollection.of(e3()))); } @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES) public void testContainsAll_nullNotAllowed() { try { assertFalse(collection.containsAll(MinimalCollection.of((E) null))); } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(ALLOWS_NULL_QUERIES)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 14:51:08 GMT 2025 - 5.9K bytes - Click Count (0) -
docs/sts/casdoor.md
Configure and install casdoor server by following [Casdoor Server Installation](https://casdoor.org/docs/basic/server-installation). For a quick installation, docker-compose reference configs are also available on the [Casdoor Try with Docker](https://casdoor.org/docs/basic/try-with-docker). ### Configure Casdoor - Go to Applications - Create or use an existing Casdoor application - Edit the application - Copy `Client ID` and `Client secret`
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 6.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
oldProps.putAll(System.getProperties()); ClassLoader oldCL = Thread.currentThread().getContextClassLoader(); try (C context = createContext(invokerRequest)) { if (contextConsumer != null) { contextConsumer.accept(context); } try { if (context.containerCapsule != null
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Oct 28 13:01:07 GMT 2025 - 43.2K bytes - Click Count (0)