Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for unavailable (0.22 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package mockwebserver3
    
    import java.net.HttpURLConnection
    import java.net.HttpURLConnection.HTTP_UNAVAILABLE
    import java.util.concurrent.BlockingQueue
    import java.util.concurrent.LinkedBlockingQueue
    import java.util.logging.Logger
    import okhttp3.ExperimentalOkHttpApi
    
    /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      /**
       * Starts the server on the loopback interface for the given port.
       *
       * @param port the port to listen to, or 0 for any available port. Automated tests should always
       * use port 0 to avoid flakiness when a specific port is unavailable.
       */
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) = start(InetAddress.getByName("localhost"), port)
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

            ObjectIdentifiers.SHA256_WITH_ECDSA -> "SHA256withECDSA"
            else -> error("unexpected signature algorithm: ${signature.algorithm}")
          }
        }
    
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + version.toInt()
        result = 31 * result + serialNumber.hashCode()
        result = 31 * result + signature.hashCode()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/DoubleInetAddressDns.kt

    import java.net.InetAddress
    import okhttp3.Dns
    
    /**
     * A network that always resolves two IP addresses per host. Use this when testing route selection
     * fallbacks to guarantee that a fallback address is available.
     */
    class DoubleInetAddressDns : Dns {
      override fun lookup(hostname: String): List<InetAddress> {
        val addresses = Dns.SYSTEM.lookup(hostname)
        return listOf(addresses[0], addresses[0])
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 1K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BitString.kt

     */
    internal data class BitString(
      val byteString: ByteString,
      /** 0-7 unused bits in the last byte. */
      val unusedBitsCount: Int,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + byteString.hashCode()
        result = 31 * result + unusedBitsCount
        return result
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/AnyValue.kt

     */
    internal data class AnyValue(
      var tagClass: Int,
      var tag: Long,
      var constructed: Boolean = false,
      var length: Long = -1L,
      val bytes: ByteString,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + tagClass
        result = 31 * result + tag.toInt()
        result = 31 * result + (if (constructed) 0 else 1)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

     */
    class JavaHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @Test fun get(server: MockWebServer) {
        // Not available
        platform.expectFailureOnJdkVersion(8)
    
        val httpClient =
          HttpClient.newBuilder()
            .followRedirects(NORMAL)
            .build()
    
        server.enqueue(
          MockResponse.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

      interface Chain {
        fun request(): Request
    
        @Throws(IOException::class)
        fun proceed(request: Request): Response
    
        /**
         * Returns the connection the request will be executed on. This is only available in the chains
         * of network interceptors; for application interceptors this is always null.
         */
        fun connection(): Connection?
    
        fun call(): Call
    
        fun connectTimeoutMillis(): Int
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

       * [response]. Returns null if the challenge cannot be satisfied.
       *
       * The route is best effort, it currently may not always be provided even when logically
       * available. It may also not be provided when an authenticator is re-used manually in an
       * application interceptor, such as when implementing client-specific retries.
       */
      @Throws(IOException::class)
      fun authenticate(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. docs/features/events.md

    ![Events Diagram](../assets/images/******@****.***)
    
    ### Availability
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
Back to top