Skip to content

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
@hexchain hexchain force-pushed the response-status branch from f21ee03 to cd88858 Compare May 2, 2025 03:38
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