Pipeline#
Classes for building complex serializers from a sequence of stages.
A pipeline of stages chained together to serialize and deserialize response objects. |
|
A single stage in a serializer pipeline. |
- class requests_cache.serializers.pipeline.SerializerPipeline(stages, name=None, is_binary=False)[source]#
Bases:
object
A pipeline of stages chained together to serialize and deserialize response objects.
Note: Typically, the first stage should be a
CattrStage
, since this does the majority of the non-format-specific work to unstructure a response object into a dict (and vice versa).- Parameters: