public function __construct(UrlScript $url, $query = NULL, $post = NULL, $files = NULL, $cookies = NULL, $headers = NULL, $method = NULL, $remoteAddress = NULL, $remoteHost = NULL) { $this->url = $url; $this->url->freeze(); if ($query === NULL) { parse_str($url->query, $this->query); } else { $this->query = (array) $query; } $this->post = (array) $post; $this->files = (array) $files; $this->cookies = (array) $cookies; $this->headers = (array) $headers; $this->method = $method; $this->remoteAddress = $remoteAddress; $this->remoteHost = $remoteHost; }