Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 332 for Cookie2 (0.14 sec)

  1. src/net/http/jar.go

    	SetCookies(u *url.URL, cookies []*Cookie)
    
    	// Cookies returns the cookies to send in a request for the given URL.
    	// It is up to the implementation to honor the standard cookie use
    	// restrictions such as in RFC 6265.
    	Cookies(u *url.URL) []*Cookie
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 900 bytes
    - Viewed (0)
  2. src/net/http/cookiejar/example_test.go

    		log.Fatal(err)
    	}
    
    	fmt.Println("After 1st request:")
    	for _, cookie := range jar.Cookies(u) {
    		fmt.Printf("  %s: %s\n", cookie.Name, cookie.Value)
    	}
    
    	if _, err = client.Get(u.String()); err != nil {
    		log.Fatal(err)
    	}
    
    	fmt.Println("After 2nd request:")
    	for _, cookie := range jar.Cookies(u) {
    		fmt.Printf("  %s: %s\n", cookie.Name, cookie.Value)
    	}
    	// Output:
    	// After 1st request:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 03:47:00 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        }
    
        return responseBuilder.build()
      }
    
      /** Returns a 'Cookie' HTTP request header with all cookies, like `a=b; c=d`. */
      private fun cookieHeader(cookies: List<Cookie>): String =
        buildString {
          cookies.forEachIndexed { index, cookie ->
            if (index > 0) append("; ")
            append(cookie.name).append('=').append(cookie.value)
          }
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/response-cookies.md

         &amp; `Response` 💪 ⚙️ 🛎 ⚒ 🎚 &amp; 🍪, **FastAPI** 🚚 ⚫️ `fastapi.Response`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tests/test_tutorial/test_response_cookies/test_tutorial001.py

    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.post("/cookie/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Come to the dark side, we have cookies"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 403 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_response_cookies/test_tutorial002.py

    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.post("/cookie-and-object/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Come to the dark side, we have cookies"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 414 bytes
    - Viewed (0)
Back to top