@@ -20,7 +20,7 @@ host_validation_re: Pattern[str]
20
20
class UnreadablePostError (OSError ): ...
21
21
class RawPostDataException (Exception ): ...
22
22
23
- UploadHandlerList : TypeAlias = list [uploadhandler .FileUploadHandler ] | ImmutableList [uploadhandler .FileUploadHandler ]
23
+ _UploadHandlerList : TypeAlias = list [uploadhandler .FileUploadHandler ] | ImmutableList [uploadhandler .FileUploadHandler ]
24
24
25
25
class HttpHeaders (CaseInsensitiveMapping [str ]):
26
26
HTTP_PREFIX : str
@@ -80,20 +80,18 @@ class HttpRequest(BytesIO):
80
80
def get_signed_cookie (
81
81
self , key : str , default : Any = ..., salt : str = ..., max_age : int | datetime .timedelta | None = ...
82
82
) -> str | None : ...
83
- def get_raw_uri (self ) -> str : ...
84
83
def build_absolute_uri (self , location : str | None = ...) -> str : ...
85
84
@property
86
85
def scheme (self ) -> str | None : ...
87
86
def is_secure (self ) -> bool : ...
88
- def is_ajax (self ) -> bool : ...
89
87
@property
90
88
def encoding (self ) -> str | None : ...
91
89
@encoding .setter
92
90
def encoding (self , val : str ) -> None : ...
93
91
@property
94
- def upload_handlers (self ) -> UploadHandlerList : ...
92
+ def upload_handlers (self ) -> _UploadHandlerList : ...
95
93
@upload_handlers .setter
96
- def upload_handlers (self , upload_handlers : UploadHandlerList ) -> None : ...
94
+ def upload_handlers (self , upload_handlers : _UploadHandlerList ) -> None : ...
97
95
@cached_property
98
96
def accepted_types (self ) -> list [MediaType ]: ...
99
97
def parse_file_upload (
@@ -105,6 +103,7 @@ class HttpRequest(BytesIO):
105
103
def body (self ) -> bytes : ...
106
104
def _load_post_and_files (self ) -> None : ...
107
105
def accepts (self , media_type : str ) -> bool : ...
106
+ def readlines (self ) -> list [bytes ]: ... # type: ignore[override]
108
107
109
108
@type_check_only
110
109
class _MutableHttpRequest (HttpRequest ):
@@ -213,3 +212,4 @@ def bytes_to_text(s: None, encoding: str) -> None: ...
213
212
def bytes_to_text (s : bytes | str , encoding : str ) -> str : ...
214
213
def split_domain_port (host : str ) -> tuple [str , str ]: ...
215
214
def validate_host (host : str , allowed_hosts : Iterable [str ]) -> bool : ...
215
+ def parse_accept_header (header : str ) -> list [MediaType ]: ...
0 commit comments