public function redirectHttps(AnCommandContext $context)
    {
        if (AnRequest::url()->scheme === 'http') {
            $url = clone AnRequest::url();
            $url->scheme = 'https';
            $context->response->setRedirect($url);
            return false;
        }
    }
public function redirectHttps(AnCommandContext $context)
    {
        if (AnRequest::url()->scheme === 'http') {
            $url = clone AnRequest::url();
            $url->scheme = 'https';
            $context->response->setRedirect($url);
            return false;
        }
    }
public function redirectHttps ( AnCommandContext $ context ) { if ( AnRequest :: url ( ) -> scheme === 'http' ) { $ url = clone AnRequest :: url ( ) ; $ url -> scheme = 'https' ; $ context -> response -> setRedirect ( $ url ) ; return false ; } }
Redirects to HTTPs.

@param AnCommandContext $context
Redirects to HTTPs .