mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
@@ -542,6 +542,11 @@ class Response(object):
|
||||
except ValueError:
|
||||
return None
|
||||
|
||||
def iter_json(self):
|
||||
for line in self.iter_lines():
|
||||
if line: # filter out keep-alive new lines
|
||||
yield json.loads(line)
|
||||
|
||||
@property
|
||||
def links(self):
|
||||
"""Returns the parsed header links of the response, if any."""
|
||||
|
||||
Reference in New Issue
Block a user