Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 121 for Cookie2 (0.1 sec)

  1. 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)
  2. 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)
  3. doc/next/6-stdlib/99-minor/net/http/62490.md

    The new [Cookie.Partitioned] field identifies cookies with the Partitioned attribute....
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 85 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. 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)
  7. 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)
  8. docs/zh/docs/advanced/response-headers.md

    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies做的那样)。
    
    然后你可以在这个*临时*响应对象中设置头部。
    ```Python hl_lines="1  7-8"
    {!../../../docs_src/response_headers/tutorial002.py!}
    ```
    
    然后你可以像平常一样返回任何你需要的对象(例如一个`dict`或者一个数据库模型)。如果你声明了一个`response_model`,它仍然会被用来过滤和转换你返回的对象。
    
    **FastAPI**将使用这个临时响应来提取头部(也包括cookies和状态码),并将它们放入包含你返回的值的最终响应中,该响应由任何`response_model`过滤。
    
    你也可以在依赖项中声明`Response`参数,并在其中设置头部(和cookies)。
    
    ## 直接返回 `Response`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/99-minor/net/http/46443.md

    [Cookie] now preserves double quotes surrounding a cookie value.
    The new [Cookie.Quoted] field indicates whether the [Cookie.Value]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:33:17 UTC 2024
    - 155 bytes
    - Viewed (0)
  10. docs/ru/docs/features.md

    * Ключи API в:
        * Заголовках.
        * Параметрах запросов.
        * Cookies и т.п.
    
    Вдобавок все функции безопасности от Starlette (включая **сессионные cookies**).
    
    Все инструменты и компоненты спроектированы для многократного использования и легко интегрируются с вашими системами, хранилищами данных, реляционными и NoSQL базами данных и т. д.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top