3 from werkzeug.exceptions import HTTPException
4 from werkzeug.routing import Rule
5 from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
9 def is_json(self) -> bool: ...
12 def get_json(self, force: bool = ..., silent: bool = ..., cache: bool = ...): ...
13 def on_json_loading_failed(self, e: Any) -> None: ...
15 class Request(RequestBase, JSONMixin):
16 url_rule: Rule | None = ...
17 view_args: dict[str, Any] = ...
18 routing_exception: HTTPException | None = ...
19 # Request is making the max_content_length readonly, where it was not the
20 # case in its supertype.
21 # We would require something like https://github.com/python/typing/issues/241
23 def max_content_length(self) -> int | None: ... # type: ignore
25 def endpoint(self) -> str | None: ...
27 def blueprint(self) -> str | None: ...
29 class Response(ResponseBase, JSONMixin):
30 default_mimetype: str | None = ...
32 def max_cookie_size(self) -> int: ...