Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 311 for cookie1 (0.12 sec)

  1. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        builder.setHeader("cookie", "r=robot")
        assertThat(headersToList(builder)).containsExactly("Cookies: delicious", "cookie: r=robot")
      }
    
      @Test
      fun mockResponseSetHeaders() {
        val builder =
          MockResponse.Builder()
            .clearHeaders()
            .addHeader("Cookie: s=square")
            .addHeader("Cookies: delicious")
        builder.headers(Headers.Builder().add("Cookie", "a=android").build())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. tests/test_security_api_key_cookie.py

        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    def test_security_api_key():
        client = TestClient(app, cookies={"key": "secret"})
        response = client.get("/users/me")
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. 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)
  4. fastapi/security/api_key.py

    class APIKeyCookie(APIKeyBase):
        """
        API key authentication using a cookie.
    
        This defines the name of the cookie that should be provided in the request with
        the API key and integrates that into the OpenAPI documentation. It extracts
        the key value sent in the cookie automatically and provides it as the dependency
        result. But it doesn't define how to set that cookie.
    
        ## Usage
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 23 22:29:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

            // cookie
            if (cookieSpec != null) {
                requestConfigBuilder.setCookieSpec(cookieSpec);
            }
    
            // cookie store
            httpClientBuilder.setDefaultCookieStore(cookieStore);
            if (cookieStore != null) {
                final Cookie[] cookies = getInitParameter(COOKIES_PROPERTY, new Cookie[0], Cookie[].class);
                for (final Cookie cookie : cookies) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 41K bytes
    - Viewed (0)
  6. pilot/pkg/networking/grpcgen/grpcgen_test.go

    							proto.Unmarshal(ss.GetSessionState().TypedConfig.Value, sc)
    						}
    					}
    				}
    			}
    		}
    		if sc.Cookie == nil {
    			t.Fatal("Failed to find session cookie")
    		}
    		if filterIndex == (len(hcm.HttpFilters) - 1) {
    			t.Fatal("session-cookie-filter cannot be the last filter!")
    		}
    		if sc.Cookie.Name != "test-cookie" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:04:02 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

    import okhttp3.internal.UTC
    
    /** The last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT". */
    internal const val MAX_DATE = 253402300799999L
    
    /**
     * Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such
     * cookies are on the fast path.
     */
    private val STANDARD_DATE_FORMAT =
      object : ThreadLocal<DateFormat>() {
        override fun initialValue(): DateFormat {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. pilot/pkg/networking/util/util_test.go

    						Cookie: &httpv3.Cookie{
    							Path: "/",
    							Name: "test-cookie",
    						},
    					}),
    				},
    			},
    		},
    		{
    			name: "service with cookie path",
    			service: &model.Service{
    				Attributes: model.ServiceAttributes{
    					Labels: map[string]string{features.PersistentSessionLabel: "test-cookie:/path"},
    				},
    			},
    			expectedconfig: &statefulsession.StatefulSession{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top