| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/jedi/third_party/django-stubs/django-stubs/middleware/ |
Upload File : |
from typing import Any, List, Optional
from django.http.request import HttpRequest
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] = ...
def process_request(self, request: HttpRequest) -> Optional[HttpResponsePermanentRedirect]: ...
def process_response(self, request: HttpRequest, response: HttpResponse) -> HttpResponse: ...