demianbrecht / sanction

A dead simple OAuth2 client implementation.
MIT License
189 stars 43 forks source link

Return the HTTPResponse instead of pre-parsed data in request() #15

Open demianbrecht opened 9 years ago

demianbrecht commented 9 years ago

Backwards incompatible

Currently, parsers are optionally passed in to pre-parse response data. This should really just pass back the raw response as pointed out in #13. This will remove the complexity of parsing the response data and put the onus on the calling code (which is where it really should be), but will also allow the caller to handle response headers, something that is currently not possible.