Lines Matching refs:TextResponse
678 such as :class:`TextResponse`.
735 If you want the body as a string, use :attr:`TextResponse.text` (only
736 available in :class:`TextResponse` and subclasses).
854 TextResponse objects
857 .. class:: TextResponse(url, [encoding[, ...]])
859 :class:`TextResponse` objects adds encoding capabilities to the base
863 :class:`TextResponse` objects support a new ``__init__`` method argument, in
868 response. If you create a :class:`TextResponse` object with a string as
874 :class:`TextResponse` objects support the following attributes in addition
877 .. attribute:: TextResponse.text
894 .. attribute:: TextResponse.encoding
905 3. the encoding declared in the response body. The TextResponse class
912 .. attribute:: TextResponse.selector
917 :class:`TextResponse` objects support the following methods in addition to
920 .. method:: TextResponse.xpath(query)
922 A shortcut to ``TextResponse.selector.xpath(query)``::
926 .. method:: TextResponse.css(query)
928 A shortcut to ``TextResponse.selector.css(query)``::
932 .. automethod:: TextResponse.follow
934 .. automethod:: TextResponse.follow_all
936 .. automethod:: TextResponse.json()
947 The :class:`HtmlResponse` class is a subclass of :class:`TextResponse`
949 http-equiv`_ attribute. See :attr:`TextResponse.encoding`.
958 The :class:`XmlResponse` class is a subclass of :class:`TextResponse` which
960 line. See :attr:`TextResponse.encoding`.