コード例 #1
0
ファイル: response.py プロジェクト: jameshilliard/treq
    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
ファイル: response.py プロジェクト: toby2o12/pythontest
    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
ファイル: response.py プロジェクト: andrew-plunk/treq
 def text(self, *args, **kwargs):
     return text_content(self.original, *args, **kwargs)