Request object contains several significant data like current Locale and matched Controller. You can use and manage them by HttpKernel events. For reliable understanding of Request-Responce live cycle read this HttpKernel Component doc page (very helpful!).
Access to Request in a Controller
Note that injected Request object applies to current request (it may or may not equal to master request).
Access to Request in a Twig or PHP template.
In Twig template, Request object is available at
When you want display request method in Twig, try this:
In PHP template
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0