Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 295 for COOKIE (0.04 seconds)

  1. docs/pt/docs/tutorial/header-params.md

    ## Importe `Header` { #import-header }
    
    Primeiro importe `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare parâmetros de `Header` { #declare-header-parameters }
    
    Então declare os paramêtros de cabeçalho usando a mesma estrutura que em `Path`, `Query` e `Cookie`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:48:53 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        this.sslSocketFactory = sslSocketFactory
      }
    
      /**
       * Configure the server to not perform SSL authentication of the client. This leaves
       * authentication to another layer such as in an HTTP cookie or header. This is the default and
       * most common configuration.
       */
      public fun noClientAuth() {
        this.clientAuth = CLIENT_AUTH_NONE
      }
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
  3. README.md

    * Many extra features (thanks to Starlette) as:
        * **WebSockets**
        * extremely easy tests based on HTTPX and `pytest`
        * **CORS**
        * **Cookie Sessions**
        * ...and more.
    
    ### Deploy your app (optional)
    
    You can optionally deploy your FastAPI app to [FastAPI Cloud](https://fastapicloud.com), go and join the waiting list if you haven't. 🚀
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  4. docs/tr/docs/advanced/response-cookies.md

    `Response` parametresini dependency'lerde de tanımlayıp, onların içinde cookie (ve header) set edebilirsiniz.
    
    ## Doğrudan bir `Response` döndürün { #return-a-response-directly }
    
    Kodunuzda doğrudan bir `Response` döndürürken de cookie oluşturabilirsiniz.
    
    Bunu yapmak için, [Doğrudan Response Döndürme](response-directly.md) bölümünde anlatıldığı gibi bir response oluşturabilirsiniz.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  5. docs/ru/docs/advanced/response-headers.md

    **FastAPI** использует этот *временный* ответ, чтобы извлечь HTTP-заголовки (а также cookie и статус-код) и поместит их в финальный HTTP-ответ, который содержит возвращённое вами значение, отфильтрованное согласно `response_model`.
    
    Вы также можете объявлять параметр `Response` в зависимостях и устанавливать в них заголовки (и cookie).
    
    ## Вернуть `Response` напрямую { #return-a-response-directly }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  6. docs/zh/docs/index.md

    * 通过 [Strawberry](https://strawberry.rocks) 等库进行 **GraphQL** 集成。
    * 许多额外特性(归功于 Starlette),例如:
        * **WebSockets**
        * 基于 HTTPX 和 `pytest` 的极其简单的测试
        * **CORS**
        * **Cookie Sessions**
        * ……以及更多。
    
    ### 部署你的应用(可选) { #deploy-your-app-optional }
    
    你可以选择把 FastAPI 应用部署到 [FastAPI Cloud](https://fastapicloud.com),如果还没有的话去加入候补名单吧。🚀
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.7K bytes
    - Click Count (0)
  7. docs/en/docs/alternatives.md

    * Seriously impressive performance.
    * WebSocket support.
    * In-process background tasks.
    * Startup and shutdown events.
    * Test client built on HTTPX.
    * CORS, GZip, Static Files, Streaming responses.
    * Session and Cookie support.
    * 100% test coverage.
    * 100% type annotated codebase.
    * Few hard dependencies.
    
    Starlette is currently the fastest Python framework tested. Only surpassed by Uvicorn, which is not a framework, but a server.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  8. docs_src/dependencies/tutorial005_py310.py

    from fastapi import Cookie, Depends, FastAPI
    
    app = FastAPI()
    
    
    def query_extractor(q: str | None = None):
        return q
    
    
    def query_or_cookie_extractor(
        q: str = Depends(query_extractor), last_query: str | None = Cookie(default=None)
    ):
        if not q:
            return last_query
        return q
    
    
    @app.get("/items/")
    async def read_query(query_or_default: str = Depends(query_or_cookie_extractor)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 443 bytes
    - Click Count (0)
  9. docs/ru/docs/tutorial/header-params.md

    ## Импорт `Header` { #import-header }
    
    Сперва импортируйте `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Объявление параметров `Header` { #declare-header-parameters }
    
    Затем объявите параметры заголовка, используя ту же структуру, что и с `Path`, `Query` и `Cookie`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 5K bytes
    - Click Count (0)
  10. tests/test_query_cookie_header_model_extra_params.py

    @app.get("/cookie")
    async def cookies_model_with_extra(data: Model = Cookie()):
        return data
    
    
    def test_query_pass_extra_list():
        client = TestClient(app)
        resp = client.get(
            "/query",
            params={
                "param": "123",
                "param2": ["456", "789"],  # Pass a list of values as extra parameter
            },
        )
        assert resp.status_code == 200
        assert resp.json() == {
            "param": "123",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top