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