Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for parseAll (0.25 sec)

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

          .isTrue()
      }
    
      @Test fun parseAll() {
        val headers =
          Headers
            .Builder()
            .add("Set-Cookie: a=b")
            .add("Set-Cookie: c=d")
            .build()
        val cookies = parseAll(url, headers)
        assertThat(cookies.size).isEqualTo(2)
        assertThat(cookies[0].toString()).isEqualTo("a=b; path=/")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

        else -> null
      }
    }
    
    fun CookieJar.receiveHeaders(
      url: HttpUrl,
      headers: Headers,
    ) {
      if (this === CookieJar.NO_COOKIES) return
    
      val cookies = Cookie.parseAll(url, headers)
      if (cookies.isEmpty()) return
    
      saveFromResponse(url, cookies)
    }
    
    /**
     * Returns true if the response headers and status indicate that this response has a (possibly
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

          return s.removePrefix(".").toCanonicalHost() ?: throw IllegalArgumentException()
        }
    
        /** Returns all of the cookies from a set of HTTP response headers. */
        @JvmStatic
        fun parseAll(
          url: HttpUrl,
          headers: Headers,
        ): List<Cookie> {
          val cookieStrings = headers.values("Set-Cookie")
          var cookies: MutableList<Cookie>? = null
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  4. okhttp/api/jvm/okhttp.api

    	public final fun name ()Ljava/lang/String;
    	public final fun newBuilder ()Lokhttp3/Cookie$Builder;
    	public static final fun parse (Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
    	public static final fun parseAll (Lokhttp3/HttpUrl;Lokhttp3/Headers;)Ljava/util/List;
    	public final fun path ()Ljava/lang/String;
    	public final fun persistent ()Z
    	public final fun sameSite ()Ljava/lang/String;
    	public final fun secure ()Z
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val secure: Boolean = cookie.secure
        val matches: Boolean = cookie.matches("".toHttpUrl())
        val parsedCookie: Cookie? = Cookie.parse("".toHttpUrl(), "")
        val cookies: List<Cookie> = Cookie.parseAll("".toHttpUrl(), headersOf())
      }
    
      @Test
      fun cookieBuilder() {
        var builder: Cookie.Builder = Cookie.Builder()
        builder = builder.name("")
        builder = builder.value("")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  6. okhttp/api/android/okhttp.api

    	public final fun name ()Ljava/lang/String;
    	public final fun newBuilder ()Lokhttp3/Cookie$Builder;
    	public static final fun parse (Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
    	public static final fun parseAll (Lokhttp3/HttpUrl;Lokhttp3/Headers;)Ljava/util/List;
    	public final fun path ()Ljava/lang/String;
    	public final fun persistent ()Z
    	public final fun sameSite ()Ljava/lang/String;
    	public final fun secure ()Z
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/HandlerTest.java

        }
    
        @Test
        @DisplayName("parseURL: exact 'smb://' sets default port")
        void testParseURL_ExactRoot_DefaultPort() throws MalformedURLException {
            // Arrange & Act: constructing this URL triggers Handler.parseURL("smb://")
            Handler handler = newHandler();
            URL url = new URL(null, "smb://", handler);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Handler.java

            return SmbConstants.DEFAULT_PORT;
        }
    
        @Override
        public URLConnection openConnection(final URL u) throws IOException {
            return new SmbFile(u);
        }
    
        @Override
        protected void parseURL(final URL u, String spec, final int start, int limit) {
            final String host = u.getHost();
            String path, ref;
            int port;
    
            if (spec.equals("smb1://")) {
                spec = "smb1:////";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/Handler.java

            if (this.transportContext == null) {
                this.transportContext = SingletonContext.getInstance();
            }
            return this.transportContext;
        }
    
        @Override
        protected void parseURL(final URL u, String spec, final int start, int limit) {
            final String host = u.getHost();
            String path, ref;
            int port;
    
            if (spec.equals("smb://")) {
                spec = "smb:////";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/zip/ZipFileUtilTest.java

         */
        public void testToJarFilePath() throws Exception {
            final URL url = new URL(null, "zip:/Program Files/foo.zip!/", new URLStreamHandler() {
                @Override
                protected void parseURL(final URL u, final String spec, final int start, final int limit) {
                    setURL(u, "zip", null, 0, null, null, spec.substring(4), null, null);
                }
    
                @Override
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top