Skip to content

Expose response status from CachePolicy #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hexchain
Copy link

@hexchain hexchain commented May 1, 2025

Adds a status field to the response returned by evaluateRequest, making it a complete HttpResponse object.

Additionally, a status() API is added to the CachePolicy class to expose the status code.

Fixes #51.

@hexchain
Copy link
Author

hexchain commented May 1, 2025

Although the status() API isn't asked for, I think it would still be useful when the status code is needed from the policy but there isn't a request to evaluate.

@hexchain hexchain changed the title Expose response status from Policy objects Expose response status from CachePolicy May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose status code from policy object?
1 participant