Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Wilson (0.21 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

            if (sourceCount == 0) {
              fileToClose = file
              file = null
            }
          }
    
          fileToClose?.closeQuietly()
        }
      }
    
      companion object {
        // TODO(jwilson): what to do about timeouts? They could be different and unfortunately when any
        //     timeout is hit we like to tear down the whole stream.
    
        private const val SOURCE_UPSTREAM = 1
        private const val SOURCE_FILE = 2
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly(
          Challenge("Digest", mapOf()),
        )
      }
    
      @Disabled("TODO(jwilson): reject parameters that use invalid characters")
      @Test
      fun doubleQuoteInToken() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate", "Digest,,,, Basic ,,,realm=my\"realm")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          val bytesDiscarded: Long
          ******@****.***ck {
            closed = true
            bytesDiscarded = readBuffer.size
            readBuffer.clear()
            condition.signalAll() // TODO(jwilson): Unnecessary?
          }
          if (bytesDiscarded > 0L) {
            updateConnectionFlowControl(bytesDiscarded)
          }
          cancelStreamIfNecessary()
        }
      }
    
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

          }
          result.writeDecimalLong(readVariableLengthLong())
        }
        return result.readUtf8()
      }
    
      /** Used for tags and subidentifiers. */
      private fun readVariableLengthLong(): Long {
        // TODO(jwilson): detect overflow.
        var result = 0L
        while (true) {
          val byteN = source.readByte().toLong() and 0xff
          if ((byteN and 0b1000_0000L) == 0b1000_0000L) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

              ) = writer.writeUtf8(value)
            },
        )
    
      /**
       * Permits alphanumerics, spaces, and these:
       *
       * ```
       *   ' () + , - . / : = ?
       * ```
       *
       * TODO(jwilson): constrain to printable string characters.
       */
      val PRINTABLE_STRING =
        BasicDerAdapter(
          name = "PRINTABLE STRING",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 19L,
          codec =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                exchange?.webSocketUpgradeFailed()
                return
              }
    
              // Apply the extensions. If they're unacceptable initiate a graceful shut down.
              // TODO(jwilson): Listeners should get onFailure() instead of onClosing() + onClosed(1010).
              val extensions = WebSocketExtensions.parse(response.headers)
              ******@****.***ions = extensions
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
Back to top