Skip to content

Cookies

Ravi Teja Gudapati edited this page Aug 18, 2018 · 5 revisions

Reading cookies from request

Cookies sent by the client can be read from the request using cookies member of Context object. It exposes cookies as a Map of cookie name to Cookie.

String token = ctx.cookies['token']?.value;

Setting cookie to response

A new cookie can be set or an old cookie updated using cookies member of Response object. It exposes cookies as a list of Cookie.

ctx.response.cookies.add(Cookies('token', token));

Basics

Serialization

Forms

Sessions

Authentication

  • Basic authentication
  • Form authentication
  • JSON authentication
  • Authorization
  • OAuth

Database

Security

Real time

  • Server sent events (SSE)
  • Websockets

Deployment

  • systemd
  • Docker
  • AppEngine

API Documentation

Clone this wiki locally