5 comments

[ 6.7 ms ] story [ 23.4 ms ] thread
Why do libraries such as Requests or HTTPX not support this out of the box? It would be really useful to have automatic warning or sentry event after deprecation response.

I understand that this functionality can be easily added as a plugin, but not everyone is aware that such a thing even exists. With default support, it will be easier to upgrade to new API versions and keep stuff up to date.

Oh, this creates a header field called "Sunset". The title made me scared for a bit.
Poor choice of terminology. Why not “Deprecated-After” or something actually descriptive.

“Sunset” is marketing speak.

It is legal, rather than marketing, speak. "Sunset clause" has been widely-used legal jargon for a good half century at this point, possibly longer.