MCPcopy
hub / github.com/aio-libs/aiohttp / encoding

Method encoding

tests/test_client_functional_oldstyle.py:1309–1315  ·  view source on GitHub ↗
(self, match)

Source from the content-addressed store, hash-verified

1307
1308 @test_utils.Router.define('/encoding/(gzip|deflate)$')
1309 def encoding(self, match):
1310 mode = match.group(1)
1311
1312 resp = self._start_response(200)
1313 resp.add_compression_filter(mode)
1314 resp.add_chunking_filter(100)
1315 self._response(resp, headers={'Content-encoding': mode}, chunked=True)
1316
1317 @test_utils.Router.define('/chunked$')
1318 def chunked(self, match):

Callers

nothing calls this directly

Calls 4

_start_responseMethod · 0.80
add_chunking_filterMethod · 0.80
_responseMethod · 0.80

Tested by

no test coverage detected