anchor.diff:  
   -include("modules/storage_file_manager/helpers/helpers.hrl").
   -include("modules/datastore/datastore_models.hrl").
  --include_lib("hackney/include/hackney_lib.hrl").
   -include_lib("ctool/include/logging.hrl").
   
   %% API
  
positive.code: derive_scheme_from_url(#{<<"hostname">> := URL} = Params) ->
      {ok, UrlScheme, Host} = parse_url(URL),
      Scheme = case UrlScheme of
          <<"https">> -> <<"https">>;
          _ -> <<"http">>
      end,
      Params#{<<"scheme">> => Scheme, <<"hostname">> => Host};
  
negative.code: 
  %% @private
  -spec parse_url(URL :: binary()) ->
      {ok, Scheme :: http | https, HostAndPort :: binary()}.
  parse_url(URL) ->
      #{scheme := Scheme, host := Host, port := Port} = url_utils:parse(URL),
      {ok, Scheme, str_utils:format_bin("~ts:~B", [Host, Port])}.
  
  
  %%--------------------------------------------------------------------
  