Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for encodedPath (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          // '/foo/bar' for a URL like 'http://example.com/foo/bar/baz'. It always starts with '/'.
          if (path == null || !path.startsWith("/")) {
            val encodedPath = url.encodedPath
            val lastSlash = encodedPath.lastIndexOf('/')
            path = if (lastSlash != 0) encodedPath.substring(0, lastSlash) else "/"
          }
    
          return Cookie(
            cookieName, cookieValue, expiresAt, domain, path, secureOnly, httpOnly,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val password: String = httpUrl.password()
        val host: String = httpUrl.host()
        val port: Int = httpUrl.port()
        val pathSize: Int = httpUrl.pathSize()
        val encodedPath: String = httpUrl.encodedPath()
        val encodedPathSegments: List<String> = httpUrl.encodedPathSegments()
        val pathSegments: List<String> = httpUrl.pathSegments()
        val encodedQuery: String? = httpUrl.encodedQuery()
    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)
  3. okhttp/src/test/java/okhttp3/InterceptorTest.kt

        client =
          client.newBuilder()
            .addInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                if (chain.request().url.encodedPath == "/b") {
                  val requestA =
                    Request.Builder()
                      .url(server.url("/a"))
                      .build()
                  val responseA = client.newCall(requestA).execute()
    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)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(requestUrl!!.scheme).isEqualTo("http")
        assertThat(requestUrl.host).isEqualTo(server.hostName)
        assertThat(requestUrl.port).isEqualTo(server.port)
        assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path")
        assertThat(requestUrl.queryParameter("key")).isEqualTo("foo bar")
      }
    
      @Test
      fun shutdownServerAfterRequest() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val password: String = httpUrl.password
        val host: String = httpUrl.host
        val port: Int = httpUrl.port
        val pathSize: Int = httpUrl.pathSize
        val encodedPath: String = httpUrl.encodedPath
        val encodedPathSegments: List<String> = httpUrl.encodedPathSegments
        val pathSegments: List<String> = httpUrl.pathSegments
        val encodedQuery: String? = httpUrl.encodedQuery
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  6. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        },
    
        PATH {
          override fun urlString(value: String): String = "http://example.com/a${value}z/"
    
          override fun encodedValue(url: HttpUrl): String {
            val path = url.encodedPath
            return path.substring(2, path.length - 2)
          }
    
          override operator fun set(
            builder: HttpUrl.Builder,
            value: String,
          ) {
            builder.addPathSegment("a${value}z")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. docs/changelogs/upgrading_to_okhttp_4.md

       tlsVersion
     * **HandshakeCertificates**: keyManager, trustManager
     * **Headers**: size
     * **HeldCertificate**: certificate, keyPair
     * **HttpLoggingInterceptor**: level
     * **HttpUrl**: encodedFragment, encodedPassword, encodedPath, encodedPathSegments, encodedQuery,
       encodedUsername, fragment, host, password, pathSegments, pathSize, port, query,
       queryParameterNames, querySize, scheme, username
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(requestUrl!!.scheme).isEqualTo("http")
        assertThat(requestUrl.host).isEqualTo(server.hostName)
        assertThat(requestUrl.port).isEqualTo(server.port)
        assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path")
        assertThat(requestUrl.queryParameter("key")).isEqualTo("foo bar")
      }
    
      @Test
      fun shutdownServerAfterRequest() {
        server.enqueue(
          MockResponse.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top