Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 249 for Cookie2 (0.1 sec)

  1. src/net/http/request.go

    }
    
    // ErrNoCookie is returned by Request's Cookie method when a cookie is not found.
    var ErrNoCookie = errors.New("http: named cookie not present")
    
    // Cookie returns the named cookie provided in the request or
    // [ErrNoCookie] if not found.
    // If multiple cookies match the given name, only one cookie will
    // be returned.
    func (r *Request) Cookie(name string) (*Cookie, error) {
    	if name == "" {
    		return nil, ErrNoCookie
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/net/http/response.go

    	// The pointer is shared between responses and should not be
    	// modified.
    	TLS *tls.ConnectionState
    }
    
    // Cookies parses and returns the cookies set in the Set-Cookie headers.
    func (r *Response) Cookies() []*Cookie {
    	return readSetCookies(r.Header)
    }
    
    // ErrNoLocation is returned by the [Response.Location] method
    // when no Location header is present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun cookie() {
        val cookie: Cookie = Cookie.Builder().build()
        val name: String = cookie.name
        val value: String = cookie.value
        val persistent: Boolean = cookie.persistent
        val expiresAt: Long = cookie.expiresAt
        val hostOnly: Boolean = cookie.hostOnly
        val domain: String = cookie.domain
        val path: String = cookie.path
        val httpOnly: Boolean = cookie.httpOnly
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  4. pilot/pkg/networking/util/util.go

    		if !found {
    			cookiePath = "/"
    		}
    		// The cookie is using TTL=0, which means they are session cookies (browser is not saving the cookie, expires
    		// when the tab is closed). Most pods don't have ability (or code) to actually persist cookies, and expiration
    		// is better handled in the cookie content (and consistently in the header value - which doesn't have
    		// persistence semantics).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InternetDomainName.java

       * {@code co.uk}, {@code google.invalid}, or {@code blogspot.com}.
       *
       * <p>This method can be used to determine whether it will probably be possible to set cookies on
       * the domain, though even that depends on individual browsers' implementations of cookie
       * controls. See <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a> for details.
       *
       * @since 6.0
       */
      public boolean isUnderPublicSuffix() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. platforms/software/resources-http/src/integTest/groovy/org/gradle/internal/resource/transport/http/CookieHeaderTest.groovy

            ]
        }
    
    }
    
    class RespondWithCookieAction extends HttpServer.ActionSupport {
        private final String cookie
        private final String attributes
    
        RespondWithCookieAction(String cookie, String attributes) {
            super("Return cookie header ${cookie}")
            this.cookie = cookie
            this.attributes = attributes
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. src/net/main_posix_test.go

    		switch net {
    		case "tcp4":
    			if so.Cookie.Family() == syscall.AF_INET && so.Cookie.Type() == syscall.SOCK_STREAM {
    				return nil, syscall.EHOSTUNREACH
    			}
    		case "udp4":
    			if so.Cookie.Family() == syscall.AF_INET && so.Cookie.Type() == syscall.SOCK_DGRAM {
    				return nil, syscall.EHOSTUNREACH
    			}
    		case "ip4":
    			if so.Cookie.Family() == syscall.AF_INET && so.Cookie.Type() == syscall.SOCK_RAW {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/net/internal/socktest/switch.go

    func cookie(family, sotype, proto int) Cookie {
    	return Cookie(family)<<48 | Cookie(sotype)&0xffffffff<<16 | Cookie(proto)&0xff
    }
    
    // A Status represents the status of a socket.
    type Status struct {
    	Cookie    Cookie
    	Err       error // error status of socket system call
    	SocketErr error // error status of socket by SO_ERROR
    }
    
    func (so Status) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/InternetDomainName.java

       * {@code co.uk}, {@code google.invalid}, or {@code blogspot.com}.
       *
       * <p>This method can be used to determine whether it will probably be possible to set cookies on
       * the domain, though even that depends on individual browsers' implementations of cookie
       * controls. See <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a> for details.
       *
       * @since 6.0
       */
      public boolean isUnderPublicSuffix() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. src/net/internal/socktest/sys_windows.go

    		return err
    	}
    
    	sw.smu.Lock()
    	defer sw.smu.Unlock()
    	if so.Err != nil {
    		sw.stats.getLocked(so.Cookie).AcceptFailed++
    		return so.Err
    	}
    	nso := sw.addLocked(as, so.Cookie.Family(), so.Cookie.Type(), so.Cookie.Protocol())
    	sw.stats.getLocked(nso.Cookie).Accepted++
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top