diff options
| author | David Evans <d@evans.io> | 2016-04-03 14:43:51 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-04 10:12:41 -0400 |
| commit | 99bb7fcc1859615a7b8c2468e7b97d54853bfb10 (patch) | |
| tree | 0a29d604e71f8ac1de258ca1b641199a3294cc2d /docs/topics/http | |
| parent | 23aa700b788e073e6efc4585425c0bd6d3092569 (diff) | |
Fixed #26452 -- Loaded middleware on server start rather than on first request.
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/middleware.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index e84aafa123..16fdace825 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -260,8 +260,12 @@ of caveats: define ``__init__`` as requiring any arguments. * Unlike the ``process_*`` methods which get called once per request, - ``__init__`` gets called only *once*, when the Web server responds to the - first request. + ``__init__`` gets called only *once*, when the Web server starts. + +.. versionchanged:: 1.10 + + In older versions, ``__init__`` was not called until the Web server + responded to its first request. Marking middleware as unused ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
