mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 07:47:09 +08:00
8 lines
369 B
Python
8 lines
369 B
Python
from django.http.request import HttpRequest
|
|
from django.http.response import HttpResponseBase
|
|
from django.utils.deprecation import MiddlewareMixin
|
|
|
|
class ConditionalGetMiddleware(MiddlewareMixin):
|
|
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
|
def needs_etag(self, response: HttpResponseBase) -> bool: ...
|