adafruit / Adafruit_CircuitPython_Requests

Requests-like interface for web interfacing
MIT License
51 stars 37 forks source link

Add a requests example for JSON, update simpletest #2

Closed brentru closed 5 years ago

brentru commented 5 years ago

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.

brentru commented 5 years ago

Closing, going to structure this differently...