Description: The request object provides access to essential HTTP request information in a framework-agnostic way. This abstraction ensures your templates remain compatible across PocketBase versions.
Properties
method
Type: 'get' | 'post' | 'put' | 'delete'
Description: The HTTP method of the request
url
Type: URLParse<string>
Description: A parsed URL object containing query parameters and other URL components
formData
Type: Record<string, any>
Description: Contains form data submitted with the request
Example Usage
Basic Request Information
<%
// Access request method
const method = request.method
// Get URL information
const path = request.url.pathname
const query = request.url.query
// Access form data
const formFields = request.formData
%>