Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,248 for iquest (0.05 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

          client.newBuilder()
            .addInterceptor(Interceptor { throw IOException() })
            .build()
        val request = Request.Builder().url(server.url("/")).build()
        c.newCall(request).enqueue(callback)
        val response = callback.await(request.url)
        assertThat(response.request).isEqualTo(request)
      }
    
      @Test
      fun reusedSinksGetIndependentTimeoutInstances() {
        server.enqueue(MockResponse())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

            DefaultProjectBuildingRequest request = new DefaultProjectBuildingRequest();
    
            request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0);
            request.setResolveDependencies(false);
    
            request.setLocalRepository(configuration.getLocalRepository());
            request.setBuildStartTime(configuration.getBuildStartTime());
            request.setUserProperties(configuration.getUserProperties());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/DuplexTest.kt

            .addHeader("h2", "v2")
            .streamHandler(body)
            .build(),
        )
        val request =
          Request.Builder()
            .url(server.url("/"))
            .method("POST", AsyncRequestBody())
            .build()
        val call = client.newCall(request)
        call.execute().use { response ->
          val sink = (request.body as AsyncRequestBody?)!!.takeSink()
          sink.writeUtf8("hey\n")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

        client.newCall(request).execute().use {
          assertEquals(204, it.code)
        }
    
        request =
          Request.Builder()
            .url(endpointUrl)
            .header("Content-Type", "application/xml")
            .put(ErringRequestBody())
            .build()
        assertFailsWith<IOException> {
          client.newCall(request).execute()
        }
    
        request =
          Request.Builder()
            .url(endpointUrl)
            .head()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. docs/features/interceptors.md

    ```java
    class LoggingInterceptor implements Interceptor {
      @Override public Response intercept(Interceptor.Chain chain) throws IOException {
        Request request = chain.request();
    
        long t1 = System.nanoTime();
        logger.info(String.format("Sending request %s on %s%n%s",
            request.url(), chain.connection(), request.headers()));
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

      }
    
      @Test
      fun defaultConfigIsNoTimeout() {
        val request =
          Request.Builder()
            .url(server.url("/"))
            .build()
        val call = client.newCall(request)
        assertThat(call.timeout().timeoutNanos()).isEqualTo(0)
      }
    
      @Test
      fun configureClientDefault() {
        val request =
          Request.Builder()
            .url(server.url("/"))
            .build()
        val timeoutClient =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

                throws MavenExecutionException {
            List<MavenProject> result = projects;
    
            if (request.getResumeFrom() != null && !request.getResumeFrom().isEmpty()) {
                File reactorDirectory = projectSelector.getBaseDirectoryFromRequest(request);
    
                String selector = request.getResumeFrom();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RequestTest.kt

        val method = "PUT"
        val request =
          Request(
            url = url,
            headers = headers,
            method = method,
            body = body,
          )
        assertThat(request.url).isEqualTo(url)
        assertThat(request.headers).isEqualTo(headers)
        assertThat(request.method).isEqualTo(method)
        assertThat(request.body).isEqualTo(body)
        assertThat(request.tags).isEmpty()
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        server.enqueue(MockResponse())
    
        val request = Request.Builder().url(server.url("/")).build()
    
        client.newCall(request).execute().use {
          assertEquals(200, it.code)
          assertEquals(listOf<Certificate>(), it.handshake?.peerCertificates)
        }
      }
    
      @Test
      fun testRequestUsesAndroidConscrypt() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://facebook.com/robots.txt").build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

        request: Request,
        proxyType: Proxy.Type,
      ): Boolean {
        return !request.isHttps && proxyType == Proxy.Type.HTTP
      }
    
      /**
       * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request
       * URL is. Includes the query component if it exists.
       */
      fun requestPath(url: HttpUrl): String {
        val path = url.encodedPath
        val query = url.encodedQuery
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top