Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 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)
Esempio n. 4
0
 def json(self, *args, **kwargs):
     return json_content(self.original, *args, **kwargs)
Esempio n. 5
0
 def json(self, *args, **kwargs):
     return json_content(self.original, *args, **kwargs)