Skip to content

Commit 0af25f4

Browse files
committed
Fix docs
1 parent af98214 commit 0af25f4

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changes
22
=======
33

4+
2.3.0 (2018-02-13)
5+
------------------
6+
- Support custom encoder and decoder by all storages #252
7+
- Bump to aiohttp 3.0
8+
49
2.2.0 (2018-01-31)
510
------------------
611

docs/reference.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,17 @@ implement both :meth:`~AbstractStorage.load_session` and
176176
*httponly* -- cookie's http-only flag, :class:`bool` or ``None`` (the
177177
same as ``False``).
178178

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

183-
*decoder* -- session deserializer.
184-
A callable with the following signature: `def decode(param: str) -> Any: ...`.
185-
Default is :func:`json.loads`.
183+
*decoder* -- session deserializer. A callable with the following
184+
signature: `def decode(param: str) -> Any: ...`. Default is
185+
:func:`json.loads`.
186+
187+
.. versionadded:: 2.3
188+
189+
Added *encoder* and *decoder* parameters.
186190

187191
.. attribute:: max_age
188192

0 commit comments

Comments
 (0)