Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 138 for http_url (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

      /**
       * Given multiple '@' characters, the last one is the delimiter.
       */
      @Test
      fun authorityWithMultipleAtSigns() {
        val httpUrl = parse("http://foo@bar@baz/path")
        assertThat(httpUrl.username).isEqualTo("foo@bar")
        assertThat(httpUrl.password).isEqualTo("")
        assertThat(httpUrl).isEqualTo(parse("http://foo%40bar@baz/path"))
      }
    
      /**
       * Given multiple ':' characters, the first one is the delimiter.
       */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

      ) = onEvent(DispatcherQueueEnd(System.nanoTime(), call, dispatcher))
    
      override fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) = onEvent(ProxySelectStart(System.nanoTime(), call, url))
    
      override fun proxySelectEnd(
        call: Call,
        url: HttpUrl,
        proxies: List<Proxy>,
      ) = onEvent(ProxySelectEnd(System.nanoTime(), call, url, proxies))
    
      override fun dnsStart(
        call: Call,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

       * this URL are always empty, since they are not significant for planning a route.
       */
      @get:JvmName("url")
      val url: HttpUrl =
        HttpUrl
          .Builder()
          .scheme(if (sslSocketFactory != null) "https" else "http")
          .host(uriHost)
          .port(uriPort)
          .build()
    
      /**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/java/okhttp3/CallJavaTest.java

      private OkHttpClient client = clientTestRule.newClient();
    
      @Test
      public void tagsSeededFromRequest() {
        Request request = new Request.Builder()
          .url(HttpUrl.get("https://square.com/"))
          .tag(Integer.class, 5)
          .tag(String.class, "hello")
          .build();
        Call call = client.newCall(request);
    
        assertEquals(5, call.tag(Integer.class));
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 26 14:54:46 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. android-test-app/src/androidTest/kotlin/okhttp/android/testapp/IdnaTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.android
    
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.Assert.assertEquals
    import org.junit.Test
    
    class IdnaTest {
      @Test
      fun testHostnameFunction() {
        assertEquals("xn--n3h.net", "https://☃.net/robots.txt".toHttpUrl().host)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Aug 03 19:38:06 UTC 2025
    - 869 bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RequestLine.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import java.net.Proxy
    import okhttp3.HttpUrl
    import okhttp3.Request
    
    object RequestLine {
      /**
       * Returns the request status line, like "GET / HTTP/1.1". This is exposed to the application by
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jun 17 00:47:36 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

         * [setCookie] is not a well-formed cookie.
         */
        @JvmStatic
        fun parse(
          url: HttpUrl,
          setCookie: String,
        ): Cookie? = parse(System.currentTimeMillis(), url, setCookie)
    
        internal fun parse(
          currentTimeMillis: Long,
          url: HttpUrl,
          setCookie: String,
        ): Cookie? {
          val cookiePairEnd = setCookie.delimiterOffset(';')
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

    import java.net.HttpURLConnection.HTTP_NO_CONTENT
    import java.util.Collections
    import okhttp3.Challenge
    import okhttp3.Cookie
    import okhttp3.CookieJar
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.Response
    import okhttp3.internal.headersContentLength
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.skipAll
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

          System.out.printf("%04d %.3f %s%n", callId, elapsedNanos / 1000000000d, name);
        }
    
        @Override public void proxySelectStart(Call call, HttpUrl url) {
          printEvent("proxySelectStart");
        }
    
        @Override public void proxySelectEnd(Call call, HttpUrl url, List<Proxy> proxies) {
          printEvent("proxySelectEnd");
        }
    
        @Override public void callStart(Call call) {
          printEvent("callStart");
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  10. android-test-app/src/androidTest/kotlin/okhttp/android/testapp/PublicSuffixDatabaseTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.android
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.Test
    
    /**
     * Run with "./gradlew :android-test-app:connectedCheck -PandroidBuild=true" and make sure ANDROID_SDK_ROOT is set.
     */
    class PublicSuffixDatabaseTest {
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top