Request-less Communication
When you need the module to output some static (or computed) content, you may use the Request-less/Static mode by simply omitting the url and specifying only the response.output directives.
Specification
You may mix static definitions with normal requests and can have more than 2 static requests.
When using this mode, the following directives are completely ignored: method
, qs
, headers
, body
, ca
, type
and pagination
- almost all request-related directives.
All response-related directive, such as response.output
, response.wrapper
, response.iterate
are available, as well as response.valid
and response.error
. The latter directives lose their value in static mode, though.
Examples
Example 1:
Example 2 - With Different Outputs Depending on Condition:
Last updated