Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for encodedPath (0.15 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)
Back to top