src/main/php/WebApp.php
protected function switchToHttps(Request $request, UriResource $uriResource): bool
    {
        return !$request->isSsl() && $uriResource->requiresHttps();
    }
protected function switchToHttps(Request $request, UriResource $uriResource): bool
    {
        return !$request->isSsl() && $uriResource->requiresHttps();
    }
protected function switchToHttps ( Request $ request , UriResource $ uriResource ) : bool { return ! $ request -> isSsl ( ) && $ uriResource -> requiresHttps ( ) ; }
checks whether a switch to https must be made

@param   \stubbles\webapp\Request              $request
@param   \stubbles\webapp\routing\UriResource  $uriResource
@return  bool
checks whether a switch to https must be made