- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 137 for Value (0.26 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
bytes = bytes, ) } } override fun toDer( writer: DerWriter, value: AnyValue, ) { writer.write("ANY", value.tagClass, value.tag) { writer.writeOctetString(value.bytes) writer.constructed = value.constructed } } } internal fun parseGeneralizedTime(string: String): Long {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
} } } internal fun headersCheckValue( value: String, name: String, ) { for (i in value.indices) { val c = value[i] require(c == '\t' || c in '\u0020'..'\u007e') { "Unexpected char 0x${c.charCode()} at $i in $name value" + (if (isSensitiveHeader(name)) "" else ": $value") } } } private fun Char.charCode() = code.toString(16).let {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
listOf( AttributeTypeAndValue( type = ORGANIZATIONAL_UNIT_NAME, value = organizationalUnit, ), ) } result += listOf( AttributeTypeAndValue( type = ObjectIdentifiers.COMMON_NAME, value = commonName ?: UUID.randomUUID().toString(), ), ) return result }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.6K bytes - Viewed (1) -
okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt
try { val response = client!!.newCall(request).execute() if (showHeaders) { println(StatusLine.get(response)) val headers = response.headers for ((name, value) in headers) { println("$name: $value") } println() } // Stream the response to the System.out as it is returned from the server. val out = System.out.sink() val source = response.body.source()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Header.kt
/** HTTP header: the name is an ASCII string, but the value can be UTF-8. */ data class Header( /** Name in case-insensitive ASCII encoding. */ @JvmField val name: ByteString, /** Value in UTF-8 encoding. */ @JvmField val value: ByteString, ) { @JvmField val hpackSize = 32 + name.size + value.size // TODO: search for toLowerCase and consider moving logic here.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 26.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
bytesIn.writeByte(0x0c) // Literal value (len = 12) bytesIn.writeUtf8("custom-value") } private fun checkReadThirdRequestWithoutHuffman() { assertThat(hpackReader!!.headerCount).isEqualTo(3) // [ 1] (s = 54) custom-key: custom-value var entry = hpackReader!!.dynamicTable[readerHeaderTableLength() - 3]!! checkEntry(entry, "custom-key", "custom-value", 54)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 38.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
} } override fun toDer( writer: DerWriter, value: Long, ) { // [1950-01-01T00:00:00..2050-01-01T00:00:00Z) if (value in -631_152_000_000L until 2_524_608_000_000L) { Adapters.UTC_TIME.toDer(writer, value) } else { Adapters.GENERALIZED_TIME.toDer(writer, value) } } } /** * ``` * Validity ::= SEQUENCE {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.6K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
field.isAccessible = true val value = field.get(instance) return if (!fieldType.isInstance(value)) null else fieldType.cast(value) } catch (_: NoSuchFieldException) { } c = c.superclass } // Didn't find the field we wanted. As a last gasp attempt, // try to find the value on a delegate. if (fieldName != "delegate") {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 10.5K bytes - Viewed (0) -
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)
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)