Skip to content

Parsing url encoded form

Ravi Teja Gudapati edited this page Dec 26, 2017 · 8 revisions

Jaguar has built-in support to parse HTTP requests with content type application/x-www-form-urlencoded. bodyAsUrlEncodedForm method on Request object parses the body and returns URL encoded form as Map<String, String>.

Example:

@Post(path: '/book/')
Future<Response<String>> updateBook(Context ctx) async {
  Map<String, String> body = await ctx.req.bodyAsUrlEncodedForm();
  String name = body['name'];
  ...
}

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