Some times, we need to fetch the protocol of the our call. It should be http or https. here is the method for fetch protocol of salesforce.
Answers
System.debug('Protocol: ' + URL.getSalesforceBaseUrl().getProtocol());
Some times, we need to fetch the protocol of the our call. It should be http or https. here is the method for fetch protocol of salesforce.
System.debug('Protocol: ' + URL.getSalesforceBaseUrl().getProtocol());