예제 #1
0
    def text(self, encoding='ISO-8859-1'):
        """
        Read the entire body all at once as text, per
        :func:`treq.text_content()`.

        :rtype: A `Deferred` that fires with a unicode string when the entire
            body has been received.
        """
        return text_content(self.original, encoding)
예제 #2
0
    def text(self, encoding='ISO-8859-1'):
        """
        Read the entire body all at once as text, per
        :func:`treq.text_content()`.

        :rtype: A `Deferred` that fires with a unicode string when the entire
            body has been received.
        """
        return text_content(self.original, encoding)
예제 #3
0
파일: response.py 프로젝트: shyba/treq
 def text(self, *args, **kwargs):
     return text_content(self.original, *args, **kwargs)
예제 #4
0
 def text(self, *args, **kwargs):
     return text_content(self.original, *args, **kwargs)