The Request service acts as a wrapper around some $_SERVER data and provides some support functions.

// Some basic examples
echo Request::uri(); // `/docs/service/Request`

echo Request::type(); // `GET`

echo Request::ip(); // 127.0.0.1

echo Request::host(); // `discophp.com`

echo Request::scheme(); // `http`

echo Request::path(); // `/docs/service/Request`

echo Request::pathPart(1); // `service`

echo Request::pathDepth(); // `2`


// You can access GET,POST,DELETE, and PUT data
Request::get('get-var');
Request::post('post-var');
Request::put('put-var');
Request::delete('put-var');