Commit Graph

5 Commits

Author SHA1 Message Date
Florian Jäckel
467984c6f8 Clear DefaultRequestHeaders when adding a new header dictionary (#302) 2018-10-27 13:56:30 +02:00
Florian Jäckel
9859e9d4ae Check if the header exists and replace it rather than add it again (#299) 2018-10-24 23:21:13 +02:00
Justin Swanson
67cb3e42f1 TooManyRequests Handling (#282)
* SpotifyHttpStatusCode

A small supplementary enum for Spotify specific codes.  Only contains TooManyRequests currently, but more can be added.

* TooManyRequests Retry Handling

Will now parse and wait the Spotify recommended wait time.  Also has the option to not consume a retry attempt on this type of error

* TryGetTooManyRequests refactored to GetTooManyRequests

To keep the library consistent

* Removed SpotifyHttpStatusCode
2018-09-21 14:42:52 +02:00
kg73
fa0f3e2d90 Modified SpotifyWebClient to use a single HttpClient per class lifeti… (#287)
* Modified SpotifyWebClient to use a single HttpClient per class lifetime. This will allow the HttpClient to properly pool connections.
Reference: https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client

* Added suggested changes. Moved ProxyConfig to the constructor of SpotifyWebClient.
2018-09-17 14:44:22 +02:00
Jonas Dellinger
5c2a901f75 Updated to .NET Core and reimplemented auth strategies 2018-08-24 14:10:13 +02:00