-
Notifications
You must be signed in to change notification settings - Fork 35
Cookies
Ravi Teja Gudapati edited this page Aug 18, 2018
·
5 revisions
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;
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
- Route handler
- Path matching
- Path parameters
- Query parameters
- Serving static files
- Cookies
- Controller
- Parameter binding
- Hot reload
Serialization
Forms
Sessions
Authentication
- Basic authentication
- Form authentication
- JSON authentication
- Authorization
- OAuth
- MongoDb
- PostgreSQL
- MySQL
- Establish connection
- ORM
- Server sent events (SSE)
- Websockets
- systemd
- Docker
- AppEngine