mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
24
django-stubs-generated/middleware/security.pyi
Normal file
24
django-stubs-generated/middleware/security.pyi
Normal file
@@ -0,0 +1,24 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import HttpResponse, HttpResponsePermanentRedirect
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
|
||||
class SecurityMiddleware(MiddlewareMixin):
|
||||
sts_seconds: int = ...
|
||||
sts_include_subdomains: bool = ...
|
||||
sts_preload: bool = ...
|
||||
content_type_nosniff: bool = ...
|
||||
xss_filter: bool = ...
|
||||
redirect: bool = ...
|
||||
redirect_host: Optional[str] = ...
|
||||
redirect_exempt: List[Any] = ...
|
||||
get_response: Optional[Callable] = ...
|
||||
def __init__(self, get_response: Optional[Callable] = ...) -> None: ...
|
||||
def process_request(
|
||||
self, request: WSGIRequest
|
||||
) -> Optional[HttpResponsePermanentRedirect]: ...
|
||||
def process_response(
|
||||
self, request: WSGIRequest, response: HttpResponse
|
||||
) -> HttpResponse: ...
|
||||
Reference in New Issue
Block a user