mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 01:45:59 +08:00
initial commit
This commit is contained in:
25
django/core/handlers/base.pyi
Normal file
25
django/core/handlers/base.pyi
Normal file
@@ -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