- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 for Reaber (0.08 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt
) : DerAdapter<T> { init { require(tagClass >= 0) require(tag >= 0) } override fun matches(header: DerHeader): Boolean = header.tagClass == tagClass && header.tag == tag override fun fromDer(reader: DerReader): T { val peekedHeader = reader.peekHeader() if (peekedHeader == null || peekedHeader.tagClass != tagClass || peekedHeader.tag != tag) { if (isOptional) return defaultValue as T
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 8.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.tls.internal.der /** * The first two bytes of each value is a header that includes its tag (field ID) and length. */ internal data class DerHeader( /** * Namespace of the tag. * * This value is encoded in bits 7 and 8 of the first byte of each value. * * ```
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
*/ private fun decodeHeaderAsJavaNetCookies( url: HttpUrl, header: String, ): List<Cookie> { val result = mutableListOf<Cookie>() var pos = 0 val limit = header.length var pairEnd: Int while (pos < limit) { pairEnd = header.delimiterOffset(";,", pos, limit) val equalsSign = header.delimiterOffset('=', pos, pairEnd)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 06 04:10:43 UTC 2024 - 3.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt
assertThat(cacheControl.toString()).isEqualTo(header) } @Test @Throws(Exception::class) fun parseIgnoreCacheControlExtensions() { // Example from http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.6 val header = "private, community=\"UCI\"" val cacheControl = parse( Headers.Builder() .set("Cache-Control", header) .build(), )
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.3K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
"5cb384cd0912aeb5b5dd9555f2dd1a9b20688201" val response = response("https://httpbin.org/brotli", s.decodeHex()) { header("Content-Encoding", "br") } val uncompressed = uncompress(response) val responseString = uncompressed.body.string() assertThat(responseString).contains("\"brotli\": true,")
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
} return apply { status = "HTTP/1.1 $code $reason" } } fun clearHeaders() = apply { headersBuilder = Headers.Builder() } fun addHeader(header: String) = apply { headersBuilder.add(header) } fun addHeader( name: String, value: Any, ) = apply { headersBuilder.add(name, value.toString()) } fun addHeaderLenient(
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/FormBody.kt
* do double-duty to make sure the counting and content are consistent, particularly when it comes * to awkward operations like measuring the encoded length of header strings, or the * length-in-digits of an encoded integer. */ private fun writeOrCountBytes( sink: BufferedSink?, countBytes: Boolean, ): Long { var byteCount = 0L
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt
*/ package okhttp3.internal.ws import okio.Buffer import okio.ByteString.Companion.encodeUtf8 object WebSocketProtocol { /** Magic value which must be appended to the key in a response header. */ internal const val ACCEPT_MAGIC = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" /* Each frame starts with two bytes of data. 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 +-+-+-+-+-------+ +-+-------------+
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.8K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt
*/ internal interface DerAdapter<T> { /** Returns true if this adapter can read [header] in a choice. */ fun matches(header: DerHeader): Boolean /** * Returns a value from this adapter. * * This must always return a value, though it doesn't necessarily need to consume data from * [reader]. For example, if the reader's peeked tag isn't readable by this adapter, it may return * a default value. *
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0)