protocol


protocolstringRead-only

Returns the protocol of the router request URL.

Premium sites: Premium site protocol

Free sites: Free site protocol

Note: The above URLs are for a published site. When previewing your site, you will receive the Editor URL.

Get the protocol of the router request's URL
JavaScript
export function myRouter_Router(request) { let protocol = request.protocol; // "https" }
Did this help?