mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-15 04:11:04 +08:00
initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import (
|
||||
HttpResponse,
|
||||
HttpResponsePermanentRedirect,
|
||||
)
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class SecurityMiddleware:
|
||||
def __init__(self, get_response: None = ...) -> 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