Skip to content

Don't serialize twice when Javalin Context is already committed #211

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

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

SentryMan
Copy link
Collaborator

Now when using ServerContext, we can write to the context response from an aspect and the controller method's result serialization can be skipped.

Fixes #210 from a certain point of view.

@SentryMan SentryMan changed the title Update ControllerMethodWriter.java Don't serialize twice when Javalin Context is already written Apr 26, 2023
@SentryMan SentryMan changed the title Don't serialize twice when Javalin Context is already written Don't serialize twice when Javalin Context is already committed Apr 26, 2023
@rbygrave rbygrave added this to the 1.39 milestone Apr 30, 2023
@rbygrave rbygrave merged commit d0c74c8 into avaje:master Apr 30, 2023
@SentryMan SentryMan deleted the ctx-response branch July 24, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aspect + RequestContextResolver: Support response reading in method interceptor
2 participants