#33683: Document HttpResponseBase and allow import from django.http
--------------------------------------+------------------------------------
Reporter: Collin Anderson | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: HTTP handling | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Collin Anderson):
I don't really know what you mean by "protocol". Could you explain more or
give an example of another "protocol"?
My use case is I have a view that wraps `django.views.static.serve`, which
returns `HttpResponseBase` according to `django-stubs`
https://github.com/typeddjango/django-stubs/blob/master/django-
stubs/views/static.pyi#L8.
So my view that wraps `serve` needs also needs to be annotated as
returning `HttpResponseBase`, so it would nice if `HttpResponseBase` was
part of the official api, rather than being undocumented.
--
Ticket URL: <https://code.djangoproject.com/ticket/33683#comment:3>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/010701809a7a66be-a439700d-b123-4889-b7c8-6473ce13a4fa-000000%40eu-central-1.amazonses.com.