コード例 #1
0
ファイル: response.py プロジェクト: toby2o12/pythontest
    def json(self):
        """
        Collect the response body as JSON per :func:`treq.json_content()`.

        :rtype: Deferred that fires with the decoded JSON when the entire body
            has been read.
        """
        return json_content(self.original)
コード例 #2
0
ファイル: response.py プロジェクト: jameshilliard/treq
    def json(self):
        """
        Collect the response body as JSON per :func:`treq.json_content()`.

        :rtype: Deferred that fires with the decoded JSON when the entire body
            has been read.
        """
        return json_content(self.original)
コード例 #3
0
    def json(self, **kwargs):
        """
        Collect the response body as JSON per :func:`treq.json_content()`.

        :param kwargs: Any keyword arguments accepted by :py:func:`json.loads`

        :rtype: Deferred that fires with the decoded JSON when the entire body
            has been read.
        """
        return json_content(self.original, **kwargs)
コード例 #4
0
ファイル: response.py プロジェクト: shyba/treq
 def json(self, *args, **kwargs):
     return json_content(self.original, *args, **kwargs)
コード例 #5
0
ファイル: response.py プロジェクト: andrew-plunk/treq
 def json(self, *args, **kwargs):
     return json_content(self.original, *args, **kwargs)