-
Notifications
You must be signed in to change notification settings - Fork 35
Parsing url encoded form
Ravi Teja Gudapati edited this page Jan 9, 2019
·
8 revisions
Jaguar has built-in support to parse HTTP requests with content type application/x-www-form-urlencoded
. bodyAsUrlEncodedForm
method on Context
object parses the body and returns the form as Map<String, String>
.
server.post('/api/contact/add', (ctx) async {
final Map<String, String> map = await ctx.bodyAsUrlEncodedForm(); // The magic!
// TODO ...
});
-
form_data
Example showcasing usage of x-www-form-urlencoded in Jaguar.
In the next article, learn how to decode Multipart forms using Jaguar.
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