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

session: add formatter/encoder for complex object #1832

Open
jknack opened this issue Jul 2, 2020 · 0 comments
Open

session: add formatter/encoder for complex object #1832

jknack opened this issue Jul 2, 2020 · 0 comments

Comments

@jknack
Copy link
Member

jknack commented Jul 2, 2020

Today HTTP session supports basic types (primitives and String mainly). Next release will allow adding arbitrary object to in-memory session and/or encode them for persistent implementation (redis, database, etc...)

{
    install(new JacksonModule());

   get("/", ctx -> {
     User user = ...;
     ctx.session().set("user", user);
   })
}

The user attribute is going to be keep in memory for in-memory session or encoded (json) for persistent implementations

@jknack jknack added this to the 2.9.0 milestone Jul 2, 2020
@jknack jknack modified the milestones: 2.8.10, 2.9.0 Jul 29, 2020
@jknack jknack modified the milestones: 2.9.0, 2.9.1 Sep 8, 2020
@jknack jknack modified the milestones: 2.9.1, 2.9.2 Oct 1, 2020
@jknack jknack modified the milestones: 2.9.2, 2.9.3 Oct 25, 2020
@jknack jknack removed this from the 2.9.3 milestone Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant