URI/URL and String what is the difference?
问题 This is out of curiosity, no code required, I tried using the worlds best search engine to get my answers but figured out nothing worthwhile. Whats the difference between a URI/URL and a string representing that URI/URL? Why do we have to parse it? What does parsing a string into URI/URL do to the string such that it is treated differently? Why does HTTP get support typing URL as a string? 回答1: URI/URL is constrained. To be valid it has to follow a certain format. By saying that they only