Esempio n. 1
0
 public function __construct(Http\UrlScript $url = NULL, $query = NULL, $post = [], $files = [], $cookies = [], $headers = [], $method = PHP_SAPI, $remoteAddress = '127.0.0.1', $remoteHost = '127.0.0.1', $rawBodyCallback = NULL)
 {
     $url = $url ?: new Http\UrlScript('http://test.bench/');
     if ($query !== NULL) {
         $url->setQuery($query);
     }
     parent::__construct($url, NULL, $post, $files, $cookies, $headers, $method, $remoteAddress, $remoteHost, $rawBodyCallback);
 }
Esempio n. 2
0
 public function __construct(UrlScript $url, $query = NULL, $post = NULL, $files = NULL, $cookies = NULL, $headers = NULL, $method = NULL, $remoteAddress = NULL, $remoteHost = NULL, $rawBodyCallback = NULL)
 {
     parent::__construct($url, $query, $post, $files, $cookies, $headers, $method, $remoteAddress, $remoteHost, $rawBodyCallback);
     $this->headers = (array) $headers;
 }
Esempio n. 3
0
 public function __construct(Http\UrlScript $url = NULL, $query = NULL, $post = [], $files = [], $cookies = [], $headers = [], $method = PHP_SAPI, $remoteAddress = '127.0.0.1', $remoteHost = '127.0.0.1', $rawBodyCallback = NULL)
 {
     parent::__construct($url ?: new Http\UrlScript('http://fake.url/'), $query, $post, $files, $cookies, $headers, $method, $remoteAddress, $remoteHost, $rawBodyCallback);
 }