ardalis / Result

A result abstraction that can be mapped to HTTP response codes if needed.
MIT License
847 stars 100 forks source link

Add support for HttpStatusCode: Created to the ResultStatus mapping #198

Closed wtygibbs closed 1 day ago

wtygibbs commented 1 month ago

Fixes #196

An assumption I made for setting the location header is that we could allow users to only define a relative location by deriving the base URL from the controller that is calling .ToActionResult on the Created result.

Is this OK or do you think we ought to allow them to specify the entire URL, or both?

Sorry If I've overlooked anything on this, it is my first second PR.

Old PR: #197