Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Desmond (0.18 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

          mockServerClient
            .`when`(
              request().withPath("/person")
                .withQueryStringParameter("name", "peter"),
            )
            .respond(response().withBody("Peter the person!"))
    
          val response = client.newCall(Request((mockServer.endpoint + "/person?name=peter").toHttpUrl())).execute()
    
          assertThat(response.body.string()).contains("Peter the person")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       * to stop requests. You could poll for lifecycle changes in a work loop:
       *
       * <pre>
       *   public void run() {
       *     while ({@link #isRunning()}) {
       *       // perform a unit of work
       *     }
       *   }
       * </pre>
       *
       * <p>...or you could respond to stop requests by implementing {@link #triggerShutdown()}, which
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * should give up.
     *
     * When reactive authentication is requested by an origin web server, the response code is 401
     * and the implementation should respond with a new request that sets the "Authorization" header.
     *
     * ```java
     * if (response.request().header("Authorization") != null) {
     *   return null; // Give up, we've already failed to authenticate.
     * }
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         */
        fun fastFallback(fastFallback: Boolean) =
          apply {
            this.fastFallback = fastFallback
          }
    
        /**
         * Sets the authenticator used to respond to challenges from origin servers. Use
         * [proxyAuthenticator] to set the authenticator for proxy servers.
         *
         * If unset, the [no authentication will be attempted][Authenticator.NONE].
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        }
    
      private var serverSocket: ServerSocket? = null
      private var sslSocketFactory: SSLSocketFactory? = null
      private var clientAuth = CLIENT_AUTH_NONE
    
      /**
       * The dispatcher used to respond to HTTP requests. The default dispatcher is a [QueueDispatcher],
       * which serves a fixed sequence of responses from a [queue][enqueue].
       *
    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)
  6. container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt

          mockServerClient
            .`when`(
              request().withPath("/person")
                .withQueryStringParameter("name", "peter"),
            )
            .respond(response().withBody("Peter the person!"))
    
          val client =
            OkHttpClient.Builder()
              .proxy(Proxy(SOCKS, InetSocketAddress(socks5Proxy.host, socks5Proxy.firstMappedPort)))
              .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

          mockServerClient
            .`when`(
              request().withPath("/person")
                .withQueryStringParameter("name", "peter"),
            )
            .respond(response().withBody("Peter the person!"))
    
          val results =
            (1..20).map {
              executor.submit {
                val response =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 11:15:46 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  8. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

          val request =
            request().withPath("/person")
              .withQueryStringParameter("name", "peter")
    
          mockServerClient
            .`when`(
              request,
            )
            .respond(response().withBody("Peter the person!"))
    
          function(mockServerClient)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

       * framing. Ignore the socket completely until the server is shut down.
       */
      object StallSocketAtStart : SocketPolicy
    
      /**
       * Read the request but don't respond to it. Just keep the socket open. For testing read response
       * header timeout issue.
       */
      object NoResponse : SocketPolicy
    
      /**
       * Fail HTTP/2 requests without processing them by sending [http2ErrorCode].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      }
    
      @Throws(IOException::class)
      override fun onReadMessage(bytes: ByteString) {
        listener.onMessage(this, bytes)
      }
    
      @Synchronized override fun onReadPing(payload: ByteString) {
        // Don't respond to pings after we've failed or sent the close frame.
        if (failed || enqueuedClose && messageAndCloseQueue.isEmpty()) return
    
        pongQueue.add(payload)
        runWriter()
        receivedPingCount++
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
Back to top