mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-26 07:37:29 +08:00
initial commit
This commit is contained in:
commit
a9f215bf64
311 files changed
+13433
No files matched your search
@@ -0,0 +1,25 @@
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import (
|
||||
FileResponse,
|
||||
HttpResponse,
|
||||
HttpResponseBase,
|
||||
)
|
||||
from typing import (
|
||||
Callable,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class BaseHandler:
|
||||
def _get_response(
|
||||
self,
|
||||
request: WSGIRequest
|
||||
) -> Union[HttpResponse, FileResponse]: ...
|
||||
def get_response(self, request: WSGIRequest) -> HttpResponseBase: ...
|
||||
def load_middleware(self) -> None: ...
|
||||
def make_view_atomic(self, view: Callable) -> Callable: ...
|
||||
def process_exception_by_middleware(
|
||||
self,
|
||||
exception: Exception,
|
||||
request: WSGIRequest
|
||||
) -> HttpResponse: ...
|
||||
Reference in new issue
Block a user