-
Notifications
You must be signed in to change notification settings - Fork 35
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
- 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