pysmock.models.Response

class pysmock.models.Response(status_code: int, headers: Dict[str, str] = None, json: Dict[str, object] = None, text: str = None, generic_fields: Dict[str, str] = None, callback: <module 'pysmock.models.Callback' from '/home/docs/checkouts/readthedocs.org/user_builds/pysmock-codegen/checkouts/latest/pysmock/models/Callback.py'> = None)
__init__(status_code: int, headers: Dict[str, str] = None, json: Dict[str, object] = None, text: str = None, generic_fields: Dict[str, str] = None, callback: <module 'pysmock.models.Callback' from '/home/docs/checkouts/readthedocs.org/user_builds/pysmock-codegen/checkouts/latest/pysmock/models/Callback.py'> = None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(status_code[, headers, json, text, …])

Initialize self.

from_yaml(loader, node)

Convert a representation node to a Python object.

to_yaml(dumper, data)

Convert a Python object to a representation node.

Attributes

yaml_flow_style

yaml_loader

yaml_tag