$request->scheme()
Returns the URL scheme (http, https, ftp, etc.)
echo kirby()->request()->scheme();