Constructor.
@api
string $baseUrl The base URL:
string $method The HTTP method:
string $host The HTTP host name:
string $scheme The HTTP scheme:
integer $httpPort The HTTP port:
integer $httpsPort The HTTPS port:
string $path The path:
string $queryString The query string:
public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost', $scheme = 'http', $httpPort = 80, $httpsPort = 443, $path = '/', $queryString = '') {
$this->baseUrl = $baseUrl;
$this->method = strtoupper($method);
$this->host = $host;
$this->scheme = strtolower($scheme);
$this->httpPort = $httpPort;
$this->httpsPort = $httpsPort;
$this->pathInfo = $path;
$this->queryString = $queryString;
}