Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
withStatus()
lookup statusText
based on statusCode
If no `statusText` is passed into `withStatus()`, then lookup what the “standard” status text would be based on the (required) `statusCode`. The list of codes and texts were pulled from https://httpstatuses.com/ P.S. Taking a cue from `variables.types` on how to setup the struct/map on the serializer. A test was also added for this functionality.
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters