Skip to content

Expose status code from policy object? #51

Description

@hexchain

In one of my project where I get to implement a cache, I store the response body (content) and the policy (via .toObject()) together. When assembling a response from cache, I have access to the body and the header through the policy object, but not the status code. Since it is already stored in the policy, would it be good to also expose it (e.g. directly with a new .statusCode() API, or from evaluateRequest() or revalidatedPolicy())?

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions