@@ -179,7 +179,7 @@ def port(self):
179179 def request (self , request , on_response = None , on_body = None ):
180180 """Create :class:`HttpClientStream` to carry out the request/response exchange.
181181
182- NOTE: The stream sends no data until :meth:`HttpClientStream.activate()`
182+ NOTE: The HTTP stream sends no data until :meth:`HttpClientStream.activate()`
183183 is called. Call activate() when you're ready for callbacks and events to fire.
184184
185185 Args:
@@ -188,7 +188,7 @@ def request(self, request, on_response=None, on_body=None):
188188 on_response: Optional callback invoked once main response headers are received.
189189 The function should take the following arguments and return nothing:
190190
191- * `http_stream` (:class:`HttpClientStream`): Stream carrying
191+ * `http_stream` (:class:`HttpClientStream`): HTTP stream carrying
192192 out this request/response exchange.
193193
194194 * `status_code` (int): Response status code.
@@ -198,21 +198,21 @@ def request(self, request, on_response=None, on_body=None):
198198
199199 * `**kwargs` (dict): Forward compatibility kwargs.
200200
201- An exception raise by this function will cause the stream to end in error.
201+ An exception raise by this function will cause the HTTP stream to end in error.
202202 This callback is always invoked on the connection's event-loop thread.
203203
204204 on_body: Optional callback invoked 0+ times as response body data is received.
205205 The function should take the following arguments and return nothing:
206206
207- * `http_stream` (:class:`HttpClientStream`): Stream carrying
207+ * `http_stream` (:class:`HttpClientStream`): HTTP stream carrying
208208 out this request/response exchange.
209209
210210 * `chunk` (buffer): Response body data (not necessarily
211211 a whole "chunk" of chunked encoding).
212212
213213 * `**kwargs` (dict): Forward-compatibility kwargs.
214214
215- An exception raise by this function will cause the stream to end in error.
215+ An exception raise by this function will cause the HTTP stream to end in error.
216216 This callback is always invoked on the connection's event-loop thread.
217217
218218 Returns:
@@ -245,11 +245,11 @@ def _on_body(self, chunk):
245245
246246
247247class HttpClientStream (HttpStreamBase ):
248- """Stream that sends a request and receives a response.
248+ """HTTP stream that sends a request and receives a response.
249249
250250 Create an HttpClientStream with :meth:`HttpClientConnection.request()`.
251251
252- NOTE: The stream sends no data until :meth:`HttpClientStream.activate()`
252+ NOTE: The HTTP stream sends no data until :meth:`HttpClientStream.activate()`
253253 is called. Call activate() when you're ready for callbacks and events to fire.
254254
255255 Attributes:
@@ -288,7 +288,7 @@ def response_status_code(self):
288288 def activate (self ):
289289 """Begin sending the request.
290290
291- The stream does nothing until this is called. Call activate() when you
291+ The HTTP stream does nothing until this is called. Call activate() when you
292292 are ready for its callbacks and events to fire.
293293 """
294294 _awscrt .http_client_stream_activate (self )
@@ -332,7 +332,7 @@ def headers(self):
332332
333333 @property
334334 def body_stream (self ):
335- """InputStream: Stream of outgoing body."""
335+ """InputStream: Binary stream of outgoing body."""
336336 return _awscrt .http_message_get_body_stream (self ._binding )
337337
338338 @body_stream .setter
@@ -352,7 +352,7 @@ class HttpRequest(HttpMessageBase):
352352 path (str): HTTP path-and-query value. Default value is "/".
353353 headers (Optional[HttpHeaders]): Optional headers. If None specified,
354354 an empty :class:`HttpHeaders` is created.
355- body_string (Optional[Union[InputStream, io.IOBase]]): Optional body as stream.
355+ body_stream (Optional[Union[InputStream, io.IOBase]]): Optional body as binary stream.
356356 """
357357
358358 __slots__ = ()
0 commit comments