$request->ssl()
Checks if this is an SSL request
if(kirby()->request()->ssl()) { echo 'This is an ssl request'; }