@@ -44,11 +44,11 @@ class Request(BaseRequest, Protocol):
44
44
parameters
45
45
A RequestParameters object. Needs to supports path attribute setter
46
46
to write resolved path parameters.
47
- body
48
- The request body, as string.
49
47
content_type
50
48
The content type with parameters (eg, charset, boundary etc.)
51
49
and always lowercase.
50
+ body
51
+ The request body, as bytes (None if not provided).
52
52
"""
53
53
54
54
@property
@@ -70,11 +70,11 @@ class WebhookRequest(BaseRequest, Protocol):
70
70
parameters
71
71
A RequestParameters object. Needs to supports path attribute setter
72
72
to write resolved path parameters.
73
- body
74
- The request body, as string.
75
73
content_type
76
74
The content type with parameters (eg, charset, boundary etc.)
77
75
and always lowercase.
76
+ body
77
+ The request body, as bytes (None if not provided).
78
78
"""
79
79
80
80
@property
@@ -103,19 +103,16 @@ class Response(Protocol):
103
103
"""Response protocol.
104
104
105
105
Attributes:
106
- data
107
- The response body, as string.
108
106
status_code
109
107
The status code as integer.
110
108
headers
111
109
Response headers as Headers.
112
110
content_type
113
111
The content type with parameters and always lowercase.
112
+ data
113
+ The response body, as bytes (None if not provided).
114
114
"""
115
115
116
- @property
117
- def data (self ) -> Optional [bytes ]: ...
118
-
119
116
@property
120
117
def status_code (self ) -> int : ...
121
118
@@ -124,3 +121,6 @@ def content_type(self) -> str: ...
124
121
125
122
@property
126
123
def headers (self ) -> Mapping [str , Any ]: ...
124
+
125
+ @property
126
+ def data (self ) -> Optional [bytes ]: ...
0 commit comments