- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for readHeaders (0.12 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt
@Test fun readRequestExamplesWithoutHuffman() { firstRequestWithoutHuffman() hpackReader!!.readHeaders() checkReadFirstRequestWithoutHuffman() secondRequestWithoutHuffman() hpackReader!!.readHeaders() checkReadSecondRequestWithoutHuffman() thirdRequestWithoutHuffman() hpackReader!!.readHeaders() checkReadThirdRequestWithoutHuffman() } @Test fun readFailingRequestExample() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 38.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt
throw IOException("Expected a SETTINGS frame but was ${formattedType(type)}") } when (type) { TYPE_DATA -> readData(handler, length, flags, streamId) TYPE_HEADERS -> readHeaders(handler, length, flags, streamId) TYPE_PRIORITY -> readPriority(handler, length, flags, streamId) TYPE_RST_STREAM -> readRstStream(handler, length, flags, streamId)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 19.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt
/** * Read `byteCount` bytes of headers from the source stream. This implementation does not * propagate the never indexed flag of a header. */ @Throws(IOException::class) fun readHeaders() { while (!source.exhausted()) { val b = source.readByte() and 0xff when { b == 0x80 -> { // 10000000 throw IOException("index == 0")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 23.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 17.6K bytes - Click Count (7) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt
*/ @Throws(IOException::class) fun processNextFrame() { check(!closed) { "closed" } readHeader() if (isControlFrame) { readControlFrame() } else { readMessageFrame() } } @Throws(IOException::class, ProtocolException::class) private fun readHeader() { if (receivedCloseFrame) throw IOException("closed")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
if (result == null) { result = readHeader() peekedHeader = result } if (result.isEndOfData) return null return result } /** * Consume the next header in the stream and return it. If there is no header to read because we * have reached a limit, this returns [END_OF_DATA]. */ internal fun readHeader(): DerHeader { require(peekedHeader == null)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.5K bytes - Click Count (0) -
src/archive/tar/reader.go
return nil, err } if _, err := tryReadFull(tr.r, tr.blk[:tr.pad]); err != nil { return nil, err } tr.pad = 0 hdr, rawHdr, err := tr.readHeader() if err != nil { return nil, err } if err := tr.handleRegularFile(hdr); err != nil { return nil, err } format.mayOnlyBe(hdr.Format) // Check for PAX/GNU special headers and files.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Oct 07 19:46:36 GMT 2025 - 26.9K bytes - Click Count (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
.writeByte(0b11111111) .writeByte(0b11111111) .writeByte(0b11111111) .writeByte(0b11111111) val derReader = DerReader(buffer) val header = derReader.readHeader() assertThat(header.length).isEqualTo(Long.MAX_VALUE) } @Test fun `decode length overflowing Long`() { val buffer = Buffer() .writeByte(0b00000010)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 31.7K bytes - Click Count (0)