Skip to main content
Archery extends HttpRequest with parsing and response helpers; you will read buffered form data and finish requests with the correct response type.

Read request data

Call request.form() to access a FormRequest. Use input(), all(), body(), file(), files(), or the synchronous query getter. The parser supports JSON, URL-encoded forms, and multipart form data.
lib/src/http/routes/web.dart
UploadedFile also exposes bytes, string, length, extension, isAudio, and isVideo. You can save privately, stream to a response with range handling, or upload through the configured S3 client.

Write responses

Use request.notFound(), request.unAuthenticated(), or request.unAuthorized() for the built-in HTML error views. Redirect helpers include redirect(), redirectBack(), redirectToLogin(), and redirectToDashboard().
The kernel buffers requests with a positive content length before middleware runs, so CSRF checks and your handler can inspect the same body.