Skip to content

X-Deprecated header implementation #40

Open
@hkraal

Description

As we're getting close to implementing versioning into pycrest I suppose we should support the X-Deprecated header as well.

Question is: should we strive to implement this for a future update or the upcoming release (I think the latter)

My thoughts:

  • raise DeprecationWarning messages when the header is present
  • log deprecation messages
  • add param to __call__() to suppress these messages

The X-Deprecated Header

To help you find out when a resource is updated, old versions will send an X-Deprecated header. It is up to you to decide what to do with this in your app to help alert you to update it.

source: versioning.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions