Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for encoded_path (0.33 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

              encodedPathSegments.add("") // Always leave at least one '/'.
            }
          }
    
        fun encodedPath(encodedPath: String) =
          apply {
            require(encodedPath.startsWith("/")) { "unexpected encodedPath: $encodedPath" }
            resolvePath(encodedPath, 0, encodedPath.length)
          }
    
        fun query(query: String?) =
          apply {
            this.encodedQueryNamesAndValues =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 63.5K bytes
    - Click Count (0)
  2. mockwebserver/README.md

      assertEquals("/v1/chat/messages/", request1.getUrl().encodedPath());
      assertNotNull(request1.getHeaders().get("Authorization"));
    
      RecordedRequest request2 = server.takeRequest();
      assertEquals("/v1/chat/messages/2", request2.getUrl().encodedPath());
    
      RecordedRequest request3 = server.takeRequest();
      assertEquals("/v1/chat/messages/3", request3.getUrl().encodedPath());
    
      // Shut down the server. Instances cannot be reused.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  3. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

              |
              |
              """.trimMargin(),
            ).setHeader("content-type", "text/event-stream")
            .build(),
        )
        val source = newEventSource()
        assertThat(source.request().url.encodedPath).isEqualTo("/")
        listener.assertOpen()
        listener.assertEvent(null, null, "hey")
        listener.assertClose()
      }
    
      @RetryingTest(5)
      fun cancelInEventShortCircuits() {
        server.enqueue(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        private static final byte[] BINARY_DATA = ORIGINAL.getBytes();
    
        private static final String ENCODED_DATA = "aG93IG5vdyBicm93biBjb3cNCg==";
    
        /**
         * @throws Exception
         */
        public void testEncode() throws Exception {
            assertEquals("1", ENCODED_DATA, Base64Util.encode(BINARY_DATA));
            System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' }));
        }
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/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,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 23.1K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/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()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response.body.string()).isEqualTo("This is the new location!")
        val request1 = server.takeRequest()
        assertThat(request1.url.encodedPath).isEqualTo("/")
        val request2 = server.takeRequest()
        assertThat(request2.url.encodedPath).isEqualTo("/foo")
      }
    
      @Test
      fun readAfterLastByte() {
        server.enqueue(MockResponse(body = "ABC"))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        assertThat(connect.headers["Proxy-Authorization"]).isEqualTo(credential)
        assertThat(connect.url.encodedPath).isEqualTo("/")
        val get = server.takeRequest()
        assertThat(get.method).isEqualTo("GET")
        assertThat(get.headers["Proxy-Authorization"]).isNull()
        assertThat(get.url.encodedPath).isEqualTo("/foo")
      }
    
      @Test
      fun preemptiveThenReactiveProxyAuthentication() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
Back to Top