Skip to content
Snippets Groups Projects
Commit 1ddae5f4 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Update get_json()'s documentation to match the actual observed behaviour

parent 6df83555
No related branches found
No related tags found
No related merge requests found
...@@ -55,10 +55,9 @@ class HttpClient(object): ...@@ -55,10 +55,9 @@ class HttpClient(object):
the request body. This will be encoded as JSON. the request body. This will be encoded as JSON.
Returns: Returns:
Deferred: Succeeds when we get *any* HTTP response. Deferred: Succeeds when we get a 2xx HTTP response. The result
will be the decoded JSON body. On a 4xx or 5xx error response a
The result of the deferred is a tuple of `(code, response)`, CodeMessageException is raised.
where `response` is a dict representing the decoded JSON body.
""" """
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment