blob: dfefff1a90e531a8dc303d33888ce4ed56b519ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
class Request
{
public static function uri()
{
return (string) trim(explode('?', $_SERVER['REQUEST_URI'])[0], "/");
}
public static function method()
{
return $_SERVER['REQUEST_METHOD'];
}
}
|