Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for takeHeaders (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        connection.writePingAndAwaitPong() // Ensure that the HEADERS has been received.
        assertThat(stream.takeHeaders())
          .isEqualTo(headersOf(Header.RESPONSE_STATUS_UTF8, "HTTP/1.1 100"))
        assertThat(stream.takeHeaders())
          .isEqualTo(headersOf(Header.RESPONSE_STATUS_UTF8, "HTTP/1.1 200"))
    
        // Verify the peer received what was expected.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      var writeBytesMaximum: Long = connection.peerSettings.initialWindowSize.toLong()
        internal set
    
      /** Received headers yet to be [taken][takeHeaders]. */
      private val headersQueue = ArrayDeque<Headers>()
    
      /** True if response headers have been sent or received. */
      private var hasResponseHeaders: Boolean = false
    
      internal val source =
        FramingSource(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

        sslSocket.startHandshake()
        return sslSocket
      }
    
      override fun onStream(stream: Http2Stream) {
        try {
          val requestHeaders = stream.takeHeaders()
          var path: String? = null
          var i = 0
          val size = requestHeaders.size
          while (i < size) {
            if (requestHeaders.name(i) == Header.TARGET_PATH_UTF8) {
              path = requestHeaders.value(i)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        stream!!.getSink().close()
      }
    
      override fun readResponseHeaders(expectContinue: Boolean): Response.Builder? {
        val stream = stream ?: throw IOException("stream wasn't created")
        val headers = stream.takeHeaders(callerIsIdle = expectContinue)
        val responseBuilder = readHttp2HeadersList(headers, protocol)
        return if (expectContinue && responseBuilder.code == HTTP_CONTINUE) {
          null
        } else {
          responseBuilder
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            }
            else -> {
            }
          }
        }
    
        @Throws(IOException::class)
        private fun readRequest(stream: Http2Stream): RecordedRequest {
          val streamHeaders = stream.takeHeaders()
          val httpHeaders = Headers.Builder()
          var method = "<:method omitted>"
          var path = "<:path omitted>"
          var readBody = true
          for ((name, value) in streamHeaders) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top