Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 229 for Cookie2 (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/uk/docs/tutorial/cors.md

    ## Символьне підставляння
    
    Можна також оголосити список як `"*"` ("символьне підставляння"), що означає дозвіл для всіх джерел.
    
    Однак це дозволить лише певні типи комунікації, виключаючи все, що пов'язане з обліковими даними: Cookies, заголовки авторизації, такі як ті, що використовуються з Bearer токенами тощо.
    
    Тому для коректної роботи краще явно вказувати дозволені джерела.
    
    ## Використання `CORSMiddleware`
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri May 30 13:34:34 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final Cookie[] cookies = request.getCookies();
            if (cookies != null) {
                for (final Cookie cookie : cookies) {
                    if (cookieName.equals(cookie.getName()) && fessConfig.isValidUserCode(cookie.getValue())) {
                        return cookie.getValue();
                    }
                }
            }
            return null;
        }
    
        /**
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  3. 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(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_dependencies/test_tutorial005.py

                None,
                200,
                {"q_or_cookie": None},
            ),
        ],
    )
    def test_get(path, cookie, expected_status, expected_response, client: TestClient):
        if cookie is not None:
            client.cookies.set("last_query", cookie)
        else:
            client.cookies.clear()
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  5. 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"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 408 bytes
    - Click Count (0)
  6. 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"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 419 bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                final Cookie[] cookies = req.getCookies();
                if (cookies != null) {
                    for (final Cookie cookie : cookies) {
                        if (cookieName.equals(cookie.getName())) {
                            try {
                                final String encoded = cookie.getValue();
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 36.3K bytes
    - Click Count (0)
  8. docs_src/response_cookies/tutorial001_py39.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    
    @app.post("/cookie/")
    def create_cookie():
        content = {"message": "Come to the dark side, we have cookies"}
        response = JSONResponse(content=content)
        response.set_cookie(key="fakesession", value="fake-cookie-session-value")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 344 bytes
    - Click Count (0)
  9. docs_src/response_cookies/tutorial002_py39.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.post("/cookie-and-object/")
    def create_cookie(response: Response):
        response.set_cookie(key="fakesession", value="fake-cookie-session-value")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 272 bytes
    - Click Count (0)
  10. tests/test_request_params/test_cookie/test_list.py

    # Currently, there is no way to pass multiple cookies with the same name.
    # The only way to pass multiple values for cookie params is to serialize them using
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 16:15:36 GMT 2025
    - 234 bytes
    - Click Count (0)
Back to Top