Skip to content

X-Deprecated header implementation #40

@hkraal

Description

@hkraal

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

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