Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 105 for ByteString (0.08 sec)

  1. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

    import mockwebserver3.internal.RecordedRequest
    import mockwebserver3.internal.decodeRequestLine
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okio.Buffer
    import okio.ByteString
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    
    @Timeout(30)
    class RecordedRequestTest {
      private val headers: Headers = Headers.EMPTY
    
      @Test fun testIPv4() {
        val socket =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

        assertThat(responseString).isEmpty()
      }
    
      private fun ByteString.zstdCompress(): ByteString {
        val result = Buffer()
        result.zstdCompress().buffer().use {
          it.write(this@zstdCompress)
        }
        return result.readByteString()
      }
    
      private fun ByteString.gzipCompress(): ByteString {
        val result = Buffer()
        (result as Sink).gzip().buffer().use {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  3. okhttp/src/androidMain/baseline-prof.txt

    HSPLokio/ByteString;->equals(Ljava/lang/Object;)Z
    HSPLokio/ByteString;->getSize$okio()I
    HSPLokio/ByteString;->hashCode()I
    HSPLokio/ByteString;->indexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I
    HSPLokio/ByteString;->indexOf([BI)I
    HSPLokio/ByteString;->internalArray$okio()[B
    HSPLokio/ByteString;->internalGet$okio(I)B
    HSPLokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

      /**
       * Returns the response as a [ByteString].
       *
       * This method loads entire response body into memory. If the response body is very large this
       * may trigger an [OutOfMemoryError]. Prefer to stream the response body if this is a
       * possibility for your response.
       */
      @Throws(IOException::class)
      fun byteString() = consumeSource(BufferedSource::readByteString) { it.size }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

    import java.io.RandomAccessFile
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Lockable
    import okhttp3.internal.concurrent.notifyAll
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.Source
    import okio.Timeout
    
    /**
     * Replicates a single upstream source into multiple downstream sources. Each downstream source
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    import okhttp3.tls.internal.der.ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
    import okhttp3.tls.internal.der.TbsCertificate
    import okhttp3.tls.internal.der.Validity
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.toByteString
    
    /**
     * A certificate and its private key. These are some properties of certificates that are used with
     * TLS:
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

    import java.io.FileDescriptor
    import java.io.FileInputStream
    import java.io.IOException
    import okhttp3.internal.checkOffsetAndCount
    import okhttp3.internal.chooseCharset
    import okio.BufferedSink
    import okio.ByteString
    import okio.FileSystem
    import okio.Path
    import okio.source
    
    abstract class RequestBody {
      /** Returns the Content-Type header for this body. */
      abstract fun contentType(): MediaType?
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 04 17:43:43 UTC 2025
    - 9K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

          throw ProtocolException("malformed bit string")
        }
        val unusedBitCount = source.readByte().toInt() and 0xff
        val byteString = source.readByteString(bytesLeft)
        return BitString(byteString, unusedBitCount)
      }
    
      fun readOctetString(): ByteString {
        if (bytesLeft == -1L || constructed) {
          throw ProtocolException("constructed octet strings not supported for DER")
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_TEXT
    import okhttp3.internal.ws.WebSocketProtocol.validateCloseCode
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.ByteString.Companion.toByteString
    import okio.Socket
    
    class RealWebSocket(
      taskRunner: TaskRunner,
      /** The application's original request unadulterated by web socket headers. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  10. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt

    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,
      val headers: List<Map<String, String>>,
    ) : Cloneable {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 23 10:26:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top