Request
Every route handler receives aPrismHTTPRequest — a struct containing everything about the incoming HTTP request.
Anatomy of a Request
Reading Headers
Headers
JSON Body
Parse JSON from the request body:JSON Parsing
Raw JSON
Form Data
URL-encoded form data is parsed automatically:Form Data
Nested Form Data
For complex forms with nested fields:Nested Forms
Multipart File Uploads
Handle file uploads from HTML forms:File Upload
XML Body
Parse XML from the request body:XML Parsing
Query Parameters
Query Parameters
Route Parameters
Captured from the URL pattern:Route Parameters
Request Validation
Validate incoming data declaratively:Validation
Custom Data via UserInfo
Middleware can store data for downstream handlers:UserInfo
Response
Learn how to build and send responses.
Validation
Deep dive into request validation rules.