Expose type for url

@qinweigong 
Though it's internal implementation, yet people can see this code since we are open source, so better use LINK_TYPE_UNLIMITED_USE instead 0 here.