Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for Mitake (0.14 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
            ) {
              throw e
            }
          },
        )
        newWebSocket()
        assertThat(testLogHandler.take()).isEqualTo("INFO: [WS client] onFailure")
      }
    
      @Test
      fun throwingOnMessageClosesImmediatelyAndFails() {
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

              )
            }
          } else if (base != null) {
            this.scheme = base.scheme
          } else {
            val truncated = if (input.length > 6) input.take(6) + "..." else input
            throw IllegalArgumentException(
              "Expected URL scheme 'http' or 'https' but no scheme was found for $truncated",
            )
          }
    
          // Authority.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

        fun connectTcp(): ConnectResult
    
        fun connectTlsEtc(): ConnectResult
    
        fun handleSuccess(): RealConnection
    
        fun cancel()
    
        /**
         * Returns a plan to attempt if canceling this plan was a mistake! The returned plan is not
         * canceled, even if this plan is canceled.
         */
        fun retry(): Plan?
      }
    
      /**
       * What to do once a plan has executed.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt

      }
    
      override fun isDuplex(): Boolean = true
    
      @Throws(InterruptedException::class)
      fun takeSink(): BufferedSink {
        return requestBodySinks.poll(5, SECONDS) ?: throw AssertionError("no sink to take")
      }
    
      fun assertNoMoreSinks() {
        assertTrue(requestBodySinks.isEmpty())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

       *
       * @param eventClass a class to assert that the returned event is an instance of, or null to
       *     take any event class.
       * @param elapsedMs the time in milliseconds elapsed since the immediately-preceding event, or
       *     -1L to take any duration.
       */
      fun takeEvent(
        eventClass: Class<out CallEvent>? = null,
        elapsedMs: Long = -1L,
      ): CallEvent {
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

        // We need to handle long logger names before they hit Log.
        // java.lang.IllegalArgumentException: Log tag "okhttp3.mockwebserver.MockWebServer" exceeds limit of 23 characters
        return knownLoggers[loggerName] ?: loggerName.take(23)
      }
    
      fun enable() {
        for ((logger, tag) in knownLoggers) {
          enableLogging(logger, tag)
        }
      }
    
      private fun enableLogging(
        logger: String,
        tag: String,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

        require(nextPlanIndex < plans.size) {
          "not enough plans! call addPlan() or set autoGeneratePlans=true in the test to set this up"
        }
        val result = plans[nextPlanIndex++]
        events += "take plan ${result.id}"
    
        if (result.yieldBeforePlanReturns) {
          taskFaker.yield()
        }
    
        val planningThrowable = result.planningThrowable
        if (planningThrowable != null) throw planningThrowable
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        @Throws(IOException::class)
        abstract fun onStream(stream: Http2Stream)
    
        /**
         * Notification that the connection's peer's settings may have changed to [settings].
         * Implementations should take appropriate action to handle the updated settings.
         *
         * Methods to this method may be made concurrently with [onStream]. But a calls to this method
         * are serialized.
         */
        open fun onSettings(
    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)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

    /**
     * Logs SSL keys to a log file, allowing Wireshark to decode traffic and be examined with http2
     * filter. The approach is to hook into JSSE log events for the messages between client and server
     * during handshake, and then take the agreed masterSecret from private fields of the session.
     *
     * Copy WireSharkKeyLoggerListener to your test code to use in development.
     *
     * This logs TLSv1.2 on a JVM (OpenJDK 11+) without any additional code.  For TLSv1.3
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

          if (rule[0][0] == EXCEPTION_MARKER) {
            // Exception rules hold the effective TLD plus one.
            domainLabels.size - rule.size
          } else {
            // Otherwise the rule is for a public suffix, so we must take one more label.
            domainLabels.size - (rule.size + 1)
          }
    
        return splitDomain(domain).asSequence().drop(firstLabelOffset).joinToString(".")
      }
    
      private fun splitDomain(domain: String): List<String> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top