Skip to content
Myr

docstringin' it up

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent d0fdf0e · Browse files · 1 file+17 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+17 added−2 removed

  • other:+17 added−2 removed

1 file+17 added−2 removed

modified:requests/models.py+17 added-2 removed
391 unmodified lines
392 of this class.393 """394395 def __init__(self):396 #: Raw content of the response, in bytes.396 #: Content of the response, in bytes or unicode (if available).397 #: If ``content-encoding`` of response was set to ``gzip``, the398 #: response data will be automatically deflated.399 self._content = None399 self.content = None400401 # Hack for Sphinx.402 del self.content403404 #: Integer Code of responded HTTP Status.405 self.status_code = None406 #: Case-insensitive Dictionary of Response Headers.407 #: For example, ``headers['content-encoding']`` will return the408 #: value of a ``'Content-Encoding'`` response header.409 self.headers = CaseInsensitiveDict()410411 #: File-like object representation of response (for advanced usage).412 self.fo = None413414 #: Final URL location of Response.415 self.url = None416417 #: True if no :attr:`error` occured.418 self.ok = False419420 #: Resulting :class:`HTTPError` of request, if one occured.421 self.error = None422423 #: A list of :class:`Response <models.Response>` objects from424 #: the history of the Request. Any redirect responses will end425 #: up here.426 self.history = []427428 #: The Request that created the Response.429 self.request = None430431 #: A dictionary of Cookies the server sent back.432 self.cookies = None433434 self._content = None435436437 def __repr__(self):438 return '<Response [%s]>' % (self.status_code)439440
216 unmodified lines