Skip to content

Commit

Permalink
address cookie comment
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Feb 7, 2025
1 parent 93ae750 commit b45e504
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/migration/fastapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ If you're using an async context manager and pass parameters to it, most likely
Cookies
~~~~~~~

While with FastAPI you usually set cookies on the response `Response` object, in Litestar it will be set at the decorator level.
While with FastAPI you usually set cookies on the response `Response` object, in Litestar it will be set at the decorator level using the `response_cookies` keyword argument.

.. seealso::

You can also set cookies in the handler itself also

* :ref:`Setting Cookies dynamically <usage/responses:setting cookies dynamically>`

.. tab-set::

Expand Down

0 comments on commit b45e504

Please sign in to comment.