forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods to DefaultResponseCreator & MockRestResponseCreators
New methods in DefaultResponseCreator for adding headers and cookies, for specifying the character encoding when setting a string body on a response, which is useful when working in environments that do not automatically assume UTF-8, such as integrating with legacy applications from a new Spring one. New methods in MockRestResponseCreators support extra commonly used HTTP status codes, including some that occur when working in AWS, CloudFlare, or when using gateways such as Kong, where resilient applications should be able to respond to ratelimits, gateway errors, and gateway timeouts that may occur if a remote service is down. Added test cases for any changes made. See spring-projectsgh-27280
- Loading branch information
1 parent
badba7c
commit d14477e
Showing
4 changed files
with
446 additions
and
2 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
Oops, something went wrong.