MCPcopy Create free account
hub / github.com/psf/cachecontrol / NullSerializer

Class NullSerializer

tests/utils.py:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10class NullSerializer(Serializer):
11 def dumps(self, request, response, body=None):
12 return response
13
14 def loads(self, request, data, body_file=None):
15 if data and getattr(data, "chunked", False):
16 data.chunked = False
17 return data
18
19
20class DummyResponse:

Callers 4

sessMethod · 0.90
sessMethod · 0.90
setup_methodMethod · 0.85
sessMethod · 0.85

Calls

no outgoing calls

Tested by 4

sessMethod · 0.72
sessMethod · 0.72
setup_methodMethod · 0.68
sessMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…