Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 189 for Cookie2 (0.14 sec)

  1. docs/tr/docs/tutorial/cookie-params.md

    # Çerez (Cookie) Parametreleri
    
    `Query` (Sorgu) ve `Path` (Yol) parametrelerini tanımladığınız şekilde çerez parametreleri tanımlayabilirsiniz.
    
    ## Import `Cookie`
    
    Öncelikle, `Cookie`'yi projenize dahil edin:
    
    === "Python 3.10+"
    
        ```Python hl_lines="3"
        {!> ../../../docs_src/cookie_params/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="3"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue May 14 19:35:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/cookie-params.md

        {!> ../../../docs_src/cookie_params/tutorial001.py!}
        ```
    
    !!! note "技术细节"
    
        `Cookie` 、`Path` 、`Query` 是**兄弟类**,都继承自共用的 `Param` 类。
    
        注意,从 `fastapi` 导入的 `Query`、`Path`、`Cookie` 等对象,实际上是返回特殊类的函数。
    
    !!! info "说明"
    
        必须使用 `Cookie` 声明 cookie 参数,否则该参数会被解释为查询参数。
    
    ## 小结
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 22:43:06 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/cookie-params.md

        ```
    
    !!! note "기술 세부사항"
        `Cookie`는 `Path` 및 `Query`의 "자매"클래스입니다. 이 역시 동일한 공통 `Param` 클래스를 상속합니다.
    
        `Query`, `Path`, `Cookie` 그리고 다른 것들은 `fastapi`에서 임포트 할 때, 실제로는 특별한 클래스를 반환하는 함수임을 기억하세요.
    
    !!! info "정보"
        쿠키를 선언하기 위해서는 `Cookie`를 사용해야 합니다. 그렇지 않으면 해당 매개변수를 쿼리 매개변수로 해석하기 때문입니다.
    
    ## 요약
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Feb 09 10:34:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/net/http/cookiejar/jar.go

    }
    
    // Cookies implements the Cookies method of the [http.CookieJar] interface.
    //
    // It returns an empty slice if the URL's scheme is not HTTP or HTTPS.
    func (j *Jar) Cookies(u *url.URL) (cookies []*http.Cookie) {
    	return j.cookies(u, time.Now())
    }
    
    // cookies is like Cookies but takes the current time as a parameter.
    func (j *Jar) cookies(u *url.URL, now time.Time) (cookies []*http.Cookie) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/net/http/cookie_test.go

    			cookies: []*Cookie{{Name: "Cookie-1", Value: "v$1"}},
    		},
    		{
    			line:    "Cookie-1=v$1;c2=v2",
    			cookies: []*Cookie{{Name: "Cookie-1", Value: "v$1"}, {Name: "c2", Value: "v2"}},
    		},
    		{
    			line:    `Cookie-1="v$1";c2="v2"`,
    			cookies: []*Cookie{{Name: "Cookie-1", Value: "v$1", Quoted: true}, {Name: "c2", Value: "v2", Quoted: true}},
    		},
    		{
    			line:    "k1=",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. src/net/http/cookiejar/jar_test.go

    	now := tNow
    
    	// Populate jar with cookies.
    	setCookies := make([]*http.Cookie, len(test.setCookies))
    	for i, cs := range test.setCookies {
    		cookies := (&http.Response{Header: http.Header{"Set-Cookie": {cs}}}).Cookies()
    		if len(cookies) != 1 {
    			panic(fmt.Sprintf("Wrong cookie line %q: %#v", cs, cookies))
    		}
    		setCookies[i] = cookies[0]
    	}
    	jar.setCookies(mustParseURL(test.fromURL), setCookies, now)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

            final Cookie[] cookies = request.getCookies();
            if (cookies != null) {
                for (final Cookie cookie : cookies) {
                    addRoleFromCookieMapping(roleSet, cookie);
                }
            }
    
        }
    
        protected void addRoleFromCookieMapping(final Set<String> roleNameList, final Cookie cookie) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

            }
            LaResponseUtil.getResponse().addCookie(cookie);
        }
    
        protected String getUserCodeFromCookie(final HttpServletRequest request) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final Cookie[] cookies = request.getCookies();
            if (cookies != null) {
                for (final Cookie cookie : cookies) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/99-minor/net/http/66008.md

    The new [ParseCookie] function parses a Cookie header value and
    returns all the cookies which were set in it. Since the same cookie
    name can appear multiple times the returned Values can contain
    more than one value for a given key.
    
    The new [ParseSetCookie] function parses a Set-Cookie header value and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 17:43:50 UTC 2024
    - 359 bytes
    - Viewed (0)
  10. tests/test_param_include_in_schema.py

                {"hidden_cookie": "somevalue"},
                200,
                {"hidden_cookie": "somevalue"},
            ),
        ],
    )
    def test_hidden_cookie(path, cookies, expected_status, expected_response):
        client = TestClient(app, cookies=cookies)
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    @pytest.mark.parametrize(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top