Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 72 for Stuart (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      fun toggleMask(
        cursor: Buffer.UnsafeCursor,
        key: ByteArray,
      ) {
        var keyIndex = 0
        val keyLength = key.size
        do {
          val buffer = cursor.data
          var i = cursor.start
          val end = cursor.end
          if (buffer != null) {
            while (i < end) {
              keyIndex %= keyLength // Reassign to prevent overflow breaking counter.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

              null -> return // no open event
              true -> return // found open event
              false -> return@loop // this is not the open event so continue
            }
          }
          fail<Any>("event $e without matching start event")
        }
      }
    
      override fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) = logEvent(ProxySelectStart(System.nanoTime(), call, url))
    
      override fun proxySelectEnd(
        call: Call,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9K bytes
    - Viewed (1)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        var requestCount: Int = mockWebServer.requestCount
        mockWebServer.enqueue(MockResponse())
        mockWebServer.start()
        mockWebServer.start(0)
        mockWebServer.start(InetAddress.getLocalHost(), 0)
        mockWebServer.shutdown()
        var dispatcher: okhttp3.mockwebserver.Dispatcher = mockWebServer.dispatcher
        dispatcher = mockWebServer.dispatcher
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  4. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          this.domain = canonicalDomain
          this.hostOnly = hostOnly
        }
    
        fun path(path: String) =
          apply {
            require(path.startsWith("/")) { "path must start with '/'" }
            this.path = path
          }
    
        fun secure() =
          apply {
            this.secure = true
          }
    
        fun httpOnly() =
          apply {
            this.httpOnly = true
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. CHANGELOG.md

        on up-to-date Kotlin releases (1.6.21) but no longer needs that version as a runtime dependency.
        This should make it easier to use OkHttp in Gradle plugins.
    
     *  Fix: Don't start the clock on response timeouts until the request body is fully transmitted.
        This is only relevant for duplex request bodies, because they are written concurrently when
        reading the response body.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       *     except for in tests that don't check for a connection preface.
       * @param taskRunner the TaskRunner to use, daemon by default.
       */
      @Throws(IOException::class)
      @JvmOverloads
      fun start(sendConnectionPreface: Boolean = true) {
        if (sendConnectionPreface) {
          writer.connectionPreface()
          writer.settings(okHttpSettings)
          val windowSize = okHttpSettings.initialWindowSize
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("a")
        assertThat(listener.recordedEventTypes())
          .containsExactly("CallStart", "CallEnd")
      }
    
      /** Response headers start, then the entire request body, then response headers end.  */
      @Test
      fun expectContinueStartsResponseHeadersEarly() {
        server.enqueue(
          MockResponse.Builder()
            .add100Continue()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  8. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    	public final fun shutdown ()V
    	public final fun start ()V
    	public final fun start (I)V
    	public final fun start (Ljava/net/InetAddress;I)V
    	public static synthetic fun start$default (Lokhttp3/mockwebserver/MockWebServer;IILjava/lang/Object;)V
    	public final fun takeRequest ()Lokhttp3/mockwebserver/RecordedRequest;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

      }
    
      @AfterEach
      fun tearDown() {
        Thread.interrupted() // Clear interrupted state.
      }
    
      @Test
      fun interruptWritingRequestBody() {
        server.enqueue(MockResponse())
        server.start()
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .post(
                object : RequestBody() {
                  override fun contentType() = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      @Throws(IOException::class)
      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) = start(InetSocketAddress(inetAddress, port))
    
      /**
       * Starts the server and binds to the given socket address.
       *
       * @param inetSocketAddress the socket address to bind the server on
       */
      @Synchronized
      @Throws(IOException::class)
      private fun start(inetSocketAddress: InetSocketAddress) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top