- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 254 for unexpectedly (0.23 sec)
-
samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java
.url("https://api.github.com/gists/c2a7c39532239ff261be") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Gist gist = gistJsonAdapter.fromJson(response.body().source()); for (Map.Entry<String, GistFile> entry : gist.files.entrySet()) { System.out.println(entry.getKey());
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionRetargetResponsePacket.java
@Override int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException { if (in.read(buffer, bufferIndex, this.length) != this.length) { throw new IOException("unexpected EOF reading netbios retarget session response"); } final int addr = readInt4(buffer, bufferIndex); bufferIndex += 4; new NbtAddress(null, addr, false, NbtAddress.B_NODE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt
partCount++ break@afterBoundaryLoop } 1 -> { // "--": No more parts. if (whitespace) throw ProtocolException("unexpected characters after boundary") if (partCount == 0) throw ProtocolException("expected at least 1 part") noMoreParts = true return null } 2, 3 -> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 02:11:14 UTC 2025 - 7.3K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
} } TYPE_IGNORED, TYPE_VALID, TYPE_DISALLOWED -> { MappedRange.Constant(rangeStart, mapping.type) } else -> error("unexpected mapping type: ${mapping.type}") } } for (sectionList in result.values) { mergeAdjacentDeltaMappedRanges(sectionList) } return result.toMap() } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/RecordedRequestFactory.kt
val parts = when { requestLine != null -> requestLine.split(' ', limit = 3) else -> return DEFAULT_REQUEST_LINE_HTTP_1 } if (parts.size != 3) { throw ProtocolException("unexpected request line: $requestLine") } return RequestLine( method = parts[0], target = parts[1], version = parts[2], ) } internal class RequestLine( val method: String,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 12:43:16 UTC 2025 - 3.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
.url("https://api.imgur.com/3/image") .post(requestBody) .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { /** * The imgur client ID for OkHttp recipes. If you're using imgur for anything other than running
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java
return switch (serializer) { case KRYO -> serializeWithKryo(obj); case JAVABIN -> SerializeUtil.fromObjectToBinary(obj); default -> throw new IllegalArgumentException("Unexpected value: " + serializer); }; } /** * Deserializes a byte array back to an object. * <p> * The deserialization method used depends on the configured serializer type.
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt
body = postBody.toRequestBody(MEDIA_TYPE_MARKDOWN), ) client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType() } } fun main() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt
.post(ProgressRequestBody(requestBody, progressListener)) .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } private class ProgressRequestBody( private val delegate: RequestBody, private val progressListener: ProgressListener,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 3.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
), ).assertLogMatch( Regex(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.2K bytes - Viewed (0)