- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for formik (0.17 sec)
-
okhttp/src/test/java/okhttp3/RecordedResponse.kt
private fun assertDateInRange( minimum: Long, actual: Long, maximum: Long, ) { assertThat(actual, "${format(minimum)} <= ${format(actual)} <= ${format(maximum)}") .isBetween(minimum, maximum) } private fun format(time: Long) = SimpleDateFormat("HH:mm:ss.SSS").format(Date(time))
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt
val direction = if (inbound) "<<" else ">>" return format( "%s 0x%08x %5d %-13s %d", direction, streamId, length, formattedType, windowSizeIncrement, ) } internal fun formattedType(type: Int): String = if (type < FRAME_NAMES.size) FRAME_NAMES[type] else format("0x%02x", type) /**
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/Progress.java
Java - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 3.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt
private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN") private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?") /** * Returns a media type for this string. * * @throws IllegalArgumentException if this is not a well-formed media type. */ internal fun String.commonToMediaType(): MediaType { val typeSubtype: MatchResult = TYPE_SUBTYPE.matchAtPolyfill(this, 0) ?: throw IllegalArgumentException("No subtype found for: \"$this\"")
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.1K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt
* limitations under the License. */ package okhttp3.internal.http2.hpackjson import okhttp3.internal.http2.Header import okio.ByteString /** * Representation of an individual case (set of headers and wire format). There are many cases for a * single story. This class is used reflectively with Moshi to parse stories. */ data class Case( val seqno: Int = 0, val wire: ByteString? = null,
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Dec 23 10:26:25 GMT 2023 - 1.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
} catch (e: GeneralSecurityException) { throw IllegalArgumentException("failed to decode certificate", e) } } /** * Returns the certificate encoded in [PEM format][rfc_7468]. * * [rfc_7468]: https://tools.ietf.org/html/rfc7468 */ fun X509Certificate.certificatePem(): String { return buildString { append("-----BEGIN CERTIFICATE-----\n")
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (2) -
samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java
sink.writeUtf8("Numbers\n"); sink.writeUtf8("-------\n"); for (int i = 2; i <= 997; i++) { System.out.println(i); Thread.sleep(10); sink.writeUtf8(String.format(" * %s = %s\n", i, factor(i))); } sink.close(); } catch (IOException | InterruptedException e) { e.printStackTrace(); } } private String factor(int n) {
Java - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Fri Jul 06 03:18:15 GMT 2018 - 3.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
return server.takeRequest() } /** * For Last-Modified and Date headers, we should echo the date back in the exact format we were * served. */ @Test fun retainServedDateFormat() { // Serve a response with a non-standard date format that OkHttp supports. val lastModifiedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-1))
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
HTTP_BAD_METHOD, HTTP_GONE, HTTP_REQ_TOO_LONG, HTTP_NOT_IMPLEMENTED, HTTP_PERM_REDIRECT, -> { // These codes can be cached unless headers forbid it. } HTTP_MOVED_TEMP, HTTP_TEMP_REDIRECT, -> { // These codes can only be cached with the right response headers.
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt
.isEqualTo(28800000L) // Ignore trailing junk assertThat("Thursday, 01-Jan-1970 00:00:00 PST JUNK".toHttpDateOrNull()!!.time) .isEqualTo(28800000L) // ANSI C's asctime() format // This format ignores the timezone entirely even if it is present and uses GMT. assertThat("Fri Jun 6 12:30:30 2014 PST".toHttpDateOrNull()!!.time).isEqualTo(1402057830000L) // Ignore trailing junk.
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.9K bytes - Viewed (0)