#36994: Middleware hooks working on functional middleware is not documented
-------------------------------+-----------------------------------------
     Reporter:  Aarni Koskela  |                    Owner:  Aarni Koskela
         Type:  Uncategorized  |                   Status:  assigned
    Component:  Core (Other)   |                  Version:  6.0
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+-----------------------------------------
Comment (by Tim McCurrach):

 I'm not aware of this being a duplicate ticket, but it does appear to be a
 duplicate of these existing PRs:
 https://github.com/django/django/pull/19856
 https://github.com/django/django/pull/19857

 My tuppence worth is that it's kind of an implementation detail that the
 hooks happen to work with function-based middleware. Whilst I don't have
 much objection to documenting them (and so officially supporting them), I
 really can't imagine a scenario where I would ever want to write
 middleware by decorating a function with these hooks. Maybe there is a
 use-case though??
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36994#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019d0d9c88c0-4095a053-c51d-456e-8689-41f2227e6572-000000%40eu-central-1.amazonses.com.

Reply via email to