Skip to content
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

Provider tighter integration of Qute into RESTEasy Reactive #25709

Merged
merged 1 commit into from
May 24, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented May 20, 2022

This change uses the ServerRestHandler mechanism instead of a response filter
to convert a template into a response.

This also paves the way to implement returning template responses
as chunks (using Qute's createMulti)

@geoand geoand requested a review from mkouba May 20, 2022 14:15
@geoand
Copy link
Contributor Author

geoand commented May 20, 2022

This actually needs a little more work to accommodate returning Uni<TemplateInstance> Done

@geoand geoand force-pushed the rr-qute-handler branch 3 times, most recently from 8d47675 to 26933d1 Compare May 20, 2022 14:59
@geoand geoand marked this pull request as ready for review May 20, 2022 14:59
@quarkus-bot

This comment has been minimized.

@geoand geoand force-pushed the rr-qute-handler branch from 26933d1 to d0035ca Compare May 20, 2022 16:08
/**
* handlers are invoked after the handlers that run after the method invocation
*/
AFTER_METHOD_INVOKE_SECOND_ROUND,
Copy link
Contributor

@gastaldi gastaldi May 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about naming it BEFORE_RESPONSE_CREATED?

Copy link
Contributor Author

@geoand geoand May 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could do that, but I think the current name (although bad) makes the intent more clear

@geoand
Copy link
Contributor Author

geoand commented May 24, 2022

@mkouba can you take a look at this one?

Thanks

Copy link
Contributor

@mkouba mkouba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

This change uses the ServerRestHandler mechanism instead of a response filter
to convert a template into a response.

This also paves the way to implement returning template responses
as chunks (using Qute's createMulti)
@geoand geoand force-pushed the rr-qute-handler branch from d0035ca to efecf5e Compare May 24, 2022 13:03
@mkouba mkouba added the triage/waiting-for-ci Ready to merge when CI successfully finishes label May 24, 2022
@gastaldi gastaldi merged commit e9b3c80 into quarkusio:main May 24, 2022
@gastaldi gastaldi deleted the rr-qute-handler branch May 24, 2022 16:23
@quarkus-bot quarkus-bot bot added this to the 2.10 - main milestone May 24, 2022
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants