HTTP Requests 
Accessing the current request 
To access the current Request object you can use the Forme\request() helper.
php
$request = \Forme\request();Usage 
Get the method 
php
$request->getMethod(); // e.g. GET
$request->isMethod('GET'); // e.g. trueGet the path 
php
$request->path(); // e.g. /pathGet the URL 
php
$request->url(); // e.g. http://test.com/path
$request->fullUrl(); // e.g. http://test.com/path?foo=barGet all query params 
php
$request->query();Get a specific query param 
php
$request->query('name');
$request->query('name', 'Jane'); // Defaults to "Jane" if not setGet all post params 
php
$request->post();Get a specific post param 
php
$request->post('name');
$request->post('name', 'Jane'); // Defaults to "Jane" if not setGet all input params 
php
$request->input();Get a specific input param 
php
$request->input('name');
$request->input('name', 'Jane'); // Defaults to "Jane" if not setDoes the request have a specific input key? 
php
if ($request->has('name')) {
    // do something
}
if ($request->has(['name', 'age'])) {
    // do something if both 'name' and 'age' are present
}Convenience Array Access 
php
// works for either post or query
$request['name'];