- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for Tate (0.47 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt
"EEE MMM d yyyy HH:mm:ss z", ) private val BROWSER_COMPATIBLE_DATE_FORMATS = arrayOfNulls<DateFormat>(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.size) /** Returns the date for this string, or null if the value couldn't be parsed. */ fun String.toHttpDateOrNull(): Date? { if (isEmpty()) return null val position = ParsePosition(0) var result = STANDARD_DATE_FORMAT.get().parse(this, position) if (position.index == length) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt
/** * Close connection after reading the request but before writing the response. Use this to * simulate late connection pool failures. */ object DisconnectAfterRequest : SocketPolicy /** * Half close connection (InputStream for client) after reading the request but before * writing the response. Use this to simulate late connection pool failures. */ object HalfCloseAfterRequest : SocketPolicy
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 4.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
/** * @param delta the offset from the current date to use. Negative values yield dates in the past; * positive values yield dates in the future. */ private fun formatDate( delta: Long, timeUnit: TimeUnit, ): String? { return formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta))) } private fun formatDate(date: Date): String? {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 6K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
.byteCount(), ).isEqualTo(20L) } @Test fun addDate() { val expected = Date(0L) val headers = Headers.Builder() .add("testDate", expected) .build() assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT") assertThat(headers.getDate("testDate")).isEqualTo(Date(0L)) } @Test fun addInstant() { val expected = Instant.ofEpochMilli(0L)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersKotlinTest.kt
*/ package okhttp3 import assertk.assertThat import assertk.assertions.containsExactly import assertk.assertions.isEqualTo import assertk.assertions.isNull import java.time.Instant import java.util.Date import okhttp3.Headers.Companion.headersOf import org.junit.jupiter.api.Test class HeadersKotlinTest { @Test fun getOperator() { val headers = headersOf("a", "b", "c", "d")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Dec 21 01:54:49 GMT 2023 - 2K bytes - Viewed (0) -
README.md
OkHttp depends on [Okio][okio] for high-performance I/O and the [Kotlin standard library][kotlin]. Both are small libraries with strong backward-compatibility. We highly recommend you keep OkHttp up-to-date. As with auto-updating web browsers, staying current with HTTPS clients is an important defense against potential security problems. [We track][tls_history] the dynamic TLS ecosystem and adjust OkHttp to improve connectivity and
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 6.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RecordedResponse.kt
import assertk.assertions.isFalse import assertk.assertions.isNotNull import assertk.assertions.isNull import assertk.assertions.isTrue import java.io.IOException import java.text.SimpleDateFormat import java.util.Date /** * A received response or failure recorded by the response recorder. */ class RecordedResponse( @JvmField val request: Request, val response: Response?, val webSocket: WebSocket?,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.3K bytes - Viewed (0) -
okhttp/build.gradle.kts
execution it sees that the classpath has changed, and so to be safe, it needs to re-run. - This is unfortunate, because actually it would be safe to declare the task as up-to-date, because these two files, which are based on the generated index.xml, are outputs, not inputs. We can be sure of this because they are deleted in the @BeforeEach method of the OsgiTest test class.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Jan 04 05:32:07 GMT 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt
assertThat("Fri Jun 6 12:30:30 2014".toHttpDateOrNull()!!.time).isEqualTo(1402057830000L) } @Test @Throws(Exception::class) fun format() { assertThat(Date(0L).toHttpDateString()).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT") assertThat(Date(1402057830000L).toHttpDateString()).isEqualTo("Fri, 06 Jun 2014 12:30:30 GMT") } @Test @Throws(Exception::class) fun parseNonStandardStrings() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt
client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println("Server: ${response.header("Server")}") println("Date: ${response.header("Date")}") println("Vary: ${response.headers("Vary")}") } } } fun main() { AccessHeaders().run()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.4K bytes - Viewed (0)