Docs > API > request

Retrieve information about the current request, in a web service or user interface screen.
Properties
parameters An associative array of request parameters.
Methods
getParameterValue(name) Returns a particular parameter value.
getParameterValues(name) Returns an array of all values for the given parameter. Use this where more than one value might be supplied.
Note that you cannot use the request object to retrieve information about the request context on a web page. That's because code using the PostCMS API is evaluated before the page is published.

Can't find what you're looking for?

Let us know and we'll see if we can help.