Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
PhpHttp.php
Go to the documentation of this file.
1<?php
2
4
13class PhpHttp extends AbstractHttp {
14
15 public function getAllHeaders() {
16 return \getallheaders ();
17 }
18
19 public function header($key, $value, bool $replace = true, int $http_response_code = 0) {
20 \header ( $key . ': ' . $value, $replace, $http_response_code );
21 }
22
23 public function headersSent(string &$file = null, int &$line = null) {
24 return \headers_sent ( $file, $line );
25 }
26
27 public function getInput() {
28 $put = array ();
29 \parse_str ( \file_get_contents ( 'php://input' ), $put );
30 return $put;
31 }
32}
33
Ubiquity\utils\http\foundation$AbstractHttp This class is part of Ubiquity.
Ubiquity\utils\http\foundation$PhpHttp This class is part of Ubiquity.
Definition PhpHttp.php:13
headersSent(string &$file=null, int &$line=null)
Definition PhpHttp.php:23
header($key, $value, bool $replace=true, int $http_response_code=0)
Definition PhpHttp.php:19