$request->ssl()

Checks if this is an SSL request

  • return (boolean)
if(kirby()->request()->ssl()) {
  echo 'This is an ssl request';
}