Skip to content

Add a requests example for JSON, update simpletest #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

brentru
Copy link
Member

@brentru brentru commented Jul 25, 2019

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 brentru requested a review from a team July 25, 2019 20:23
@brentru
Copy link
Member Author

brentru commented Jul 25, 2019

Closing, going to structure this differently...

@brentru brentru closed this Jul 25, 2019
justmobilize pushed a commit to justmobilize/Adafruit_CircuitPython_Requests that referenced this pull request Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant