$this->request = Services::
request();
} /**
* Get our Response object, and set some default values, including
* the HTTP protocol version and a default successful response.
*/
protected function getResponseObject() { $this->response = Services::
response($this->config
);
if ($this->
isWeb()) { $this->response->
setProtocolVersion($this->request->
getProtocolVersion());
} // Assume success until proven otherwise.
$this->response->
setStatusCode(200
);
} /**
* Force Secure Site Access? If the config value 'forceGlobalSecureRequests'
* is true, will enforce that all requests to this site are made through
* HTTPS. Will redirect the user to the current page with HTTPS, as well
* as set the HTTP Strict Transport Security header for those browsers
* that support it.
*
* @param int $duration How long the Strict Transport Security
* should be enforced for this URL.
*/