Search code examples
httpurlurispecifications

What is protocol and host combined called?


According to spec and semantics is protocol and host combined: https://example.com still called a host, or is this called a URL, URI, or something else?

Also, is (https) called protocol or scheme? NGINX uses scheme, but I don't see any reference to that origin.


Solution

  • Actually, it's all on wiki... https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Relationship_between_URIs.2C_URLs.2C_and_URNs

    The name you are looking for is URL. URI is a global name for resource identifiers, and URL is a specific type of URI used in web. And, according to the papers, you should use scheme, not host: https://www.w3.org/TR/uri-clarification/#uri-schemes