예제 #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)
예제 #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)
예제 #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
 def json(self, *args, **kwargs):
     return json_content(self.original, *args, **kwargs)