Allows a resource URL to be a function called when building URL

Hi everyone,

I was in need of dynamic URL resources for a project where the user can configure from which API the data is fetched.

I didn't find any way to do this properly, but I saw that URL param value can be a function called to get the effective value, so I did the same with URL.

Thanks.