Chapter · 7 pages
Response Builders
Pages in this chapter
What are the available response builders?
Storefront
Listed below are all the storefront response builders, the vast majority are view page...
PAGE
How do I pass data to a response?
The most common task performed when extending responses, is setting additional data. Typically, f...
PAGE
How do I redirect a response?
Sometimes you may wish to redirect the user to another location, either to an external site or wi...
PAGE
How do I set the response status code?
There may be situations where the HTTP response status needs to be altered. By default, the retur...
PAGE
How do I set response headers?
When extending the response builder, you can set HTTP headers to be sent with the response:
\Aero...
PAGE
How do I attach middleware to a response builder?
Since Aero does not expose the underlying routes and controllers, middleware can be attached dire...
PAGE
How do I change the response view?
For responses that return HTML, a Twig view file is used. Whilst these are originally defined, th...
PAGE