- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 74 for instant (0.23 sec)
-
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
} @Test fun setInstant() { val expected = Instant.ofEpochMilli(1000L) val headers = Headers.Builder() .add("Test-Instant", Instant.ofEpochMilli(0L)) .set("Test-Instant", expected) .build() assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT") assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected) } @Test fun addParsing() {
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/main/kotlin/okhttp3/Headers.kt
) = add(name, value.toHttpDateString()) /** * Add a header with the specified name and formatted instant. Does validation of header names * and value. */ @IgnoreJRERequirement // Only programs that already have Instant will use this. fun add( name: String, value: Instant, ) = add(name, Date.from(value)) /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.5K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.curl.logging import java.io.PrintWriter import java.io.StringWriter import java.time.Instant import java.time.ZoneOffset import java.time.format.DateTimeFormatterBuilder import java.time.temporal.ChronoField.HOUR_OF_DAY import java.time.temporal.ChronoField.MINUTE_OF_HOUR
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/test/java/okhttp3/HeadersKotlinTest.kt
* limitations under the License. */ 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) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
@Test fun headers() { var headers: Headers = headersOf("", "") headers = mapOf("" to "").toHeaders() val get: String? = headers[""] val date: Date? = headers.getDate("") val instant: Instant? = headers.getInstant("") val size: Int = headers.size val name: String = headers.name(0) val value: String = headers.value(0) val names: Set<String> = headers.names()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
docs/changelogs/changelog_4x.md
`NullPointerException: bio == null`. ## Version 4.9.0 _2020-09-11_ **With this release, `okhttp-tls` no longer depends on Bouncy Castle and doesn't install the Bouncy Castle security provider.** If you still need it, you can do it yourself: ``` Security.addProvider(BouncyCastleProvider()) ``` You will also need to configure this dependency: ```
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt
internal val delegate: RealConnectionPool, ) { internal constructor( maxIdleConnections: Int = 5, keepAliveDuration: Long = 5, timeUnit: TimeUnit = TimeUnit.MINUTES, taskRunner: TaskRunner = TaskRunner.INSTANCE, connectionListener: ConnectionListener = ConnectionListener.NONE, readTimeoutMillis: Int = 10_000, writeTimeoutMillis: Int = 10_000, socketConnectTimeoutMillis: Int = 10_000,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 03 20:39:41 GMT 2024 - 5.6K bytes - Viewed (0) -
deploy_website.sh
cp CHANGELOG.md docs/changelogs/changelog.md cp CONTRIBUTING.md docs/contribute/contributing.md # Build the site and push the new files up to GitHub python3 -m venv venv source venv/bin/activate pip install mkdocs-material mkdocs-redirects mkdocs gh-deploy # Restore Javadocs from 1.x, 2.x, and 3.x. git checkout gh-pages git cherry-pick bb229b9dcc9a21a73edbf8d936bea88f52e0a3ff
Shell Script - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Nov 20 15:26:12 GMT 2023 - 1.2K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt
* limitations under the License. */ package okhttp3.internal.idn import kotlin.math.abs import okio.ByteString internal sealed interface MappedRange { val rangeStart: Int data class Constant( override val rangeStart: Int, val type: Int, ) : MappedRange { val b1: Int get() = when (type) { TYPE_IGNORED -> 119 TYPE_VALID -> 120
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dns.kt
companion object { /** * A DNS that uses [InetAddress.getAllByName] to ask the underlying operating system to * lookup IP addresses. Most custom [Dns] implementations should delegate to this instance. */ @JvmField val SYSTEM: Dns = DnsSystem() private class DnsSystem : Dns { override fun lookup(hostname: String): List<InetAddress> { try {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.2K bytes - Viewed (0)