Skip to content

feat: improve the ResponseStatus interface to be more informative #68

Closed
@francescovallone

Description

Description

The ResponseStatus interface allows to subscribe to all or to specific events of the response object, however it is inconsistent and can be improved a lot.

First of all instead of being a ResponseStatus it can be a RequestState to check both the Request and Response objects.
It should also provide a property with informational data inside like the thrown exception or the location of the redirect.

Requirements

  • Move the ResponseStatus from the response to the request object.
  • Add informative data useful to the user like the redirect location or the exception thrown.
  • Update the documentation

Metadata

Labels

api stabilizationChanges to stabilize the API of the frameworkbreaking changeFeature or fix that break stuff in the frameworkenhancementNew feature or request

Projects

  • Status

    Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions