Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 196 for url (0.41 sec)

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

        assertThat(builtRequestWithoutCache.url).isEqualTo(
          "http://localhost/api/foo".toHttpUrl(),
        )
        val requestWithCache =
          Request.Builder()
            .url("http://localhost/api")
            .build()
        // cache url object
        requestWithCache.url
        val builtRequestWithCache =
          requestWithCache.newBuilder()
            .url("http://localhost/api/foo")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/InterceptorTest.kt

                if (chain.request().url.encodedPath == "/b") {
                  val requestA =
                    Request.Builder()
                      .url(server.url("/a"))
                      .build()
                  try {
                    val callbackA = RecordingCallback()
                    client.newCall(requestA).enqueue(callbackA)
                    callbackA.await(requestA.url).assertBody("a")
                  } catch (e: Exception) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Request.kt

        }
    
        open fun url(url: HttpUrl): Builder =
          apply {
            this.url = url
          }
    
        /**
         * Sets the URL target of this request.
         *
         * @throws IllegalArgumentException if [url] is not a valid HTTP or HTTPS URL. Avoid this
         *     exception by calling [HttpUrl.parse]; it returns null for invalid URLs.
         */
        open fun url(url: String): Builder {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

      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 =
          client.newBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

            .connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks.
            .dns { dnsResults }
            .fastFallback(true)
            .build()
        url =
          serverIpv4.url("/")
            .newBuilder()
            .host("localhost")
            .build()
      }
    
      @AfterEach
      internal fun tearDown() {
        serverIpv4.shutdown()
        serverIpv6.shutdown()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val interceptor = HttpLoggingInterceptor()
        val level = interceptor.getLevel()
      }
    
      @Test @Disabled
      fun httpUrl() {
        val httpUrl: HttpUrl = HttpUrl.get("")
        val url: URL = httpUrl.url()
        val uri: URI = httpUrl.uri()
        val scheme: String = httpUrl.scheme()
        val encodedUsername: String = httpUrl.encodedUsername()
        val username: String = httpUrl.username()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/DispatcherTest.kt

            }
          }
        thread.start()
        return thread
      }
    
      private fun newRequest(url: String): Request {
        return Request.Builder().url(url).build()
      }
    
      private fun newRequest(
        url: String,
        tag: String,
      ): Request {
        return Request.Builder().url(url).tag(tag).build()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

            .build()
      }
    
      @Test
      fun http2OneBadHostOneGoodNoRetryOnConnectionFailure() {
        enableProtocol(Protocol.HTTP_2)
    
        val request = Request(server1.url("/"))
    
        server1.enqueue(refusedStream)
        server2.enqueue(bodyResponse)
    
        dns[server1.hostName] = listOf(ipv6, ipv4)
        socketFactory[ipv6] = server1.inetSocketAddress
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/security/first-steps.md

        {!> ../../../docs_src/security/tutorial001.py!}
        ```
    
    !!! tip "Подсказка"
        Здесь `tokenUrl="token"` ссылается на относительный URL `token`, который мы еще не создали. Поскольку это относительный URL, он эквивалентен `./token`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  10. maven-core/src/test/resources/apiv4-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom

      </description>
      <url>http://maven.apache.org/</url>
      <issueManagement>
        <system>jira</system>
        <url>http://jira.codehaus.org/browse/MPA</url>
      </issueManagement>
      <ciManagement>
        <system>continuum</system>
        <url>http://maven.zones.apache.org/continuum</url>
        <notifiers>
          <notifier>
            <type>mail</type>
            <configuration>
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 14.8K bytes
    - Viewed (0)
Back to top