- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 103 for second (0.23 sec)
-
okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt
""" |data: first event |id: 1 | |data: second event |id | |data: third event | | """.trimMargin(), ) assertThat(callbacks.remove()).isEqualTo(Event("1", null, "first event")) assertThat(callbacks.remove()).isEqualTo(Event(null, null, "second event")) assertThat(callbacks.remove()).isEqualTo(Event(null, null, "third event")) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java
.connectTimeout(5, TimeUnit.SECONDS) .writeTimeout(5, TimeUnit.SECONDS) .readTimeout(5, TimeUnit.SECONDS) .callTimeout(10, TimeUnit.SECONDS) .build(); } public void run() throws Exception { Request request = new Request.Builder() .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay. .build();
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Sep 28 18:00:26 GMT 2019 - 1.5K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
* * Regular lines contain fields separated by semicolons. * * The first element on each line is a single hex code point (like 0041) or a hex code point range * (like 0030..0039). * * The second element on each line is a mapping type, like `valid` or `mapped`. * * For lines that contain a mapping target, the next thing is a sequence of hex code points (like * 0031 2044 0034). * * All other data is ignored.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.8K bytes - Viewed (0) -
docs/features/events.md
0.002 responseHeadersStart 0.082 responseHeadersEnd 0.082 responseBodyStart 0.082 responseBodyEnd 0.083 connectionReleased 0.083 callEnd ``` Notice how no connect events are fired for the second call. It reused the connection from the first request for dramatically better performance. ### EventListener.Factory
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 7.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
fun emptyCache(parameters: Pair<FileSystem, Boolean>) { setUp(parameters.first, parameters.second) cache.close() assertJournalEquals() } @ParameterizedTest @ArgumentsSource(FileSystemParamProvider::class) fun recoverFromInitializationFailure(parameters: Pair<FileSystem, Boolean>) { setUp(parameters.first, parameters.second) // Add an uncommitted entry. This will get detected on initialization, and the cache will
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt
.appendLiteral(':') .appendValue(SECOND_OF_MINUTE, 2) .optionalStart() .appendFraction(NANO_OF_SECOND, 3, 3, true) .toFormatter() private val offset = ZoneOffset.systemDefault() override fun format(record: LogRecord): String { val message = formatMessage(record) val time = Instant.ofEpochMilli(record.millis).atZone(offset) return if (record.thrown != null) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
* interpret a token. * * For example, the first line has a parameter name/value pair and the second line has a single * token68: * * ``` * WWW-Authenticate: Digest foo=bar * WWW-Authenticate: Digest foo= * ``` * * Similarly, the first line has one challenge and the second line has two challenges: * * ``` * WWW-Authenticate: Digest ,foo=bar * WWW-Authenticate: Digest ,foo * ``` */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
MockResponse.Builder() .body(body) .throttleBody(1024, 1, TimeUnit.SECONDS) .build(), ) // Slow connection 1KiB/second. server.enqueue( MockResponse(body = body), ) client = client.newBuilder() .readTimeout(Duration.ofMillis(500)) // Half a second to read something. .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CookieJar.kt
*/ interface CookieJar { /** * Saves [cookies] from an HTTP response to this store according to this jar's policy. * * Note that this method may be called a second time for a single HTTP response if the response * includes a trailer. For this obscure HTTP feature, [cookies] contains only the trailer's * cookies. */ fun saveFromResponse( url: HttpUrl,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
// Connection is pooled! assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) } @Test fun streamDiscardingIsTimely() { // This response takes at least a full second to serve: 10,000 bytes served 100 bytes at a time. server.enqueue( MockResponse.Builder() .body(Buffer().write(ByteArray(10000))) .throttleBody(100, 10, TimeUnit.MILLISECONDS)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0)