Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Feb 13, 2018
1 parent af98214 commit 0af25f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changes
=======

2.3.0 (2018-02-13)
------------------
- Support custom encoder and decoder by all storages #252
- Bump to aiohttp 3.0

2.2.0 (2018-01-31)
------------------

Expand Down
16 changes: 10 additions & 6 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,17 @@ implement both :meth:`~AbstractStorage.load_session` and
*httponly* -- cookie's http-only flag, :class:`bool` or ``None`` (the
same as ``False``).

*encoder* -- session serializer.
A callable with the following signature: `def encode(param: Any) -> str: ...`.
Default is :func:`json.dumps`.
*encoder* -- session serializer. A callable with the following
signature: `def encode(param: Any) -> str: ...`. Default is
:func:`json.dumps`.

*decoder* -- session deserializer.
A callable with the following signature: `def decode(param: str) -> Any: ...`.
Default is :func:`json.loads`.
*decoder* -- session deserializer. A callable with the following
signature: `def decode(param: str) -> Any: ...`. Default is
:func:`json.loads`.

.. versionadded:: 2.3

Added *encoder* and *decoder* parameters.

.. attribute:: max_age

Expand Down

0 comments on commit 0af25f4

Please sign in to comment.