adafruit / Adafruit_CircuitPython_Requests

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

Add simple Request class to Response #187

Open justmobilize opened 5 months ago

justmobilize commented 5 months ago

I was playing with ssl: work on anything implementing the socket protocol and testing the quote endpoint on Adafruit (which I know redirects to https) and realized there isn't a way to find that out.

I would like to add a light-weight Request class that returns the method, url and headers, like in CPython:

image

Here you can see it moved to https

justmobilize commented 5 months ago

@FoamyGuy do you think this would be a good add?

FoamyGuy commented 5 months ago

Yeah, It seems like nice functionality to have to me, as long as we stick to a subset of cpython requests behavior and API.