Skip to content

Allow built ServerResponse to throw exception #30818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
poutsma opened this issue Jul 5, 2023 · 0 comments
Closed

Allow built ServerResponse to throw exception #30818

poutsma opened this issue Jul 5, 2023 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@poutsma
Copy link
Contributor

poutsma commented Jul 5, 2023

Because ServerResponse.HeadersBuilder::build uses a BiFunction, it does not allow for an exception to be thrown. We should introduce a separate functional interface that does allow for exceptions to be thrown.

@poutsma poutsma added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Jul 5, 2023
@poutsma poutsma added this to the 6.1.0-M2 milestone Jul 5, 2023
@poutsma poutsma self-assigned this Jul 5, 2023
@poutsma poutsma closed this as completed in 4961555 Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant