Exemple #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)
Exemple #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)
Exemple #3
0
 def text(self, *args, **kwargs):
     return text_content(self.original, *args, **kwargs)
Exemple #4
0
 def text(self, *args, **kwargs):
     return text_content(self.original, *args, **kwargs)