@@ -21,7 +21,7 @@ def body(self) -> Optional[str]:
2121 ...
2222
2323 @property
24- def mimetype (self ) -> str :
24+ def content_type (self ) -> str :
2525 ...
2626
2727
@@ -48,11 +48,9 @@ class Request(BaseRequest, Protocol):
4848 to write resolved path parameters.
4949 body
5050 The request body, as string.
51- mimetype
52- Like content type, but without parameters (eg, without charset,
53- type etc.) and always lowercase.
54- For example if the content type is "text/HTML; charset=utf-8"
55- the mimetype would be "text/html".
51+ content_type
52+ The content type with parameters (eg, charset, boundary etc.)
53+ and always lowercase.
5654 """
5755
5856 @property
@@ -78,11 +76,9 @@ class WebhookRequest(BaseRequest, Protocol):
7876 to write resolved path parameters.
7977 body
8078 The request body, as string.
81- mimetype
82- Like content type, but without parameters (eg, without charset,
83- type etc.) and always lowercase.
84- For example if the content type is "text/HTML; charset=utf-8"
85- the mimetype would be "text/html".
79+ content_type
80+ The content type with parameters (eg, charset, boundary etc.)
81+ and always lowercase.
8682 """
8783
8884 @property
0 commit comments