Adding a more advanced example requests_json.py to demonstrate commonly-used requests functionality such as setting custom headers, sending data, sending json data, and parsing data from a response.
Updates simpletest to show automatically-decoded text response, the raw response (as bytes), the response's HTTP status code, and response's HTTP headers.
Adding a more advanced example
requests_json.py
to demonstrate commonly-used requests functionality such as setting custom headers, sending data, sending json data, and parsing data from a response.Updates simpletest to show automatically-decoded text response, the raw response (as bytes), the response's HTTP status code, and response's HTTP headers.