Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class Service extends Controller |
||
25 | { |
||
26 | public function index() |
||
27 | { |
||
28 | $headers = apache_request_headers(); |
||
29 | |||
30 | $this->sendPayload( |
||
31 | [ |
||
32 | 'request' => [ |
||
33 | 'method' => $this->input->server('REQUEST_METHOD'), |
||
|
|||
34 | 'time' => $this->input->server('REQUEST_TIME'), |
||
35 | 'uri' => $this->input->server('REQUEST_URI'), |
||
36 | 'agent' => $this->input->server('HTTP_USER_AGENT'), |
||
37 | 'authorization' => $this->input->server('HTTP_AUTHORIZATION') |
||
38 | ], |
||
39 | 'headers' => $headers, |
||
40 | 'get' => $_GET, |
||
41 | 'post' => $_POST, |
||
42 | 'payload' => $this->globals->payload |
||
43 | ] |
||
46 | } |