- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 393 for IOException (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
"ConnectionReleased", ) } @Test @Throws(IOException::class) fun successfulEmptyH2CallEventSequence() { enableTls() server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1) server.enqueue(MockResponse()) assertSuccessfulEventOrder() } @Test @Throws(IOException::class) fun multipleDnsLookupsForSingleCall() { server.enqueue(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 18:33:48 GMT 2025 - 9.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/SequentialExchangeFinder.kt
package okhttp3.internal.connection import java.io.IOException /** Attempt routes one at a time until one connects. */ internal class SequentialExchangeFinder( override val routePlanner: RoutePlanner, ) : ExchangeFinder { override fun find(): RealConnection { var firstException: IOException? = null while (true) { if (routePlanner.isCanceled()) throw IOException("Canceled") try {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
* Call call = client.newCall(request); * call.enqueue(new Callback() { * public void onResponse(Call call, Response response) throws IOException { * try (ResponseBody responseBody = response.body()) { * ... // Use the response. * } * } * * public void onFailure(Call call, IOException e) { * ... // Handle the failure. * } * }); * ``` *
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 11.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
assertThat(response.peekTrailers()).isNull() assertFailsWith<IOException> { source.readUtf8() } try { assertThat(response.peekTrailers()).isNull() // Okay. This is what HTTP/1 does. } catch (_: IOException) { // Also okay. This is what HTTP/2 does. } assertFailsWith<IOException> { response.trailers() } } } @Test
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 08 21:45:04 GMT 2025 - 18.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/guide/GetExample.java
* limitations under the License. */ package okhttp3.guide; import java.io.IOException; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class GetExample { final OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build();Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 1.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt
// Guarded by this. override lateinit var bytes: ByteString override lateinit var exceptionBytes: ByteString private var readFailure: IOException? = null @Throws(IOException::class) private fun readTheList() { var publicSuffixListBytes: ByteString? var publicSuffixExceptionListBytes: ByteString? try { listSource().buffer().use { bufferedSource ->
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 3.6K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt
object : Callback { override fun onFailure( call: Call, e: IOException, ) { e.printStackTrace() } override fun onResponse( call: Call, response: Response, ) { response.use { if (!response.isSuccessful) throw IOException("Unexpected code $response") for ((name, value) in response.headers) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.6K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
*/ @Throws(IOException::class) public fun start( inetAddress: InetAddress, port: Int, ) { start(InetSocketAddress(inetAddress, port)) } /** * Starts the server and binds to the given socket address. * * @param socketAddress the socket address to bind the server on */ @Synchronized @Throws(IOException::class)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 02 20:36:00 GMT 2025 - 40.3K bytes - Click Count (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java
} } catch (XMLStreamException | IOException e) { throw new PlexusConfigurationException(e.getMessage(), e); } } private static BufferedInputStream reset(StreamSupplier inputSupplier, BufferedInputStream bis) throws IOException { try { bis.reset(); return bis; } catch (IOException e) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 17.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
@Override public InputStream openStream() throws IOException { if (counter[0]++ != 0) { throw new IllegalStateException("More than one source open"); } return new FilterInputStream(source.openStream()) { @Override public void close() throws IOException { super.close(); counter[0]--; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 4.7K bytes - Click Count (0)