MCPcopy
hub / github.com/aws/aws-cli / RawResponse

Class RawResponse

scripts/performance/simple_stubbed_tests.py:10–19  ·  view source on GitHub ↗

A bytes-like streamable HTTP response representation.

Source from the content-addressed store, hash-verified

8
9
10class RawResponse(BytesIO):
11 """
12 A bytes-like streamable HTTP response representation.
13 """
14
15 def stream(self, **kwargs):
16 contents = self.read()
17 while contents:
18 yield contents
19 contents = self.read()
20
21
22class StubbedHTTPClient:

Callers 1

add_responseMethod · 0.70

Calls

no outgoing calls

Tested by 1

add_responseMethod · 0.56