$request->scheme()

Returns the URL scheme (http, https, ftp, etc.)

  • return (string)
echo kirby()->request()->scheme();