2

I am wondering what the different names are for these things:

localhost                  (host?)
localhost:3000             (address?)
http://localhost:3000      (url base?)
http://localhost:3000/xyz  (url resource?)

what are the best names for the different entities above?

1 Answers1

2

what are the best names for the different entities?

         userinfo       host      port
          ┌──┴───┐ ┌──────┴──────┐ ┌┴┐
  https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top
  └─┬─┘   └───────────┬──────────────┘└───────┬───────┘ └───────────┬─────────────┘ └┬┘
  scheme          authority                  path                 query           fragment

Source Uniform Resource Identifier - Wikipedia

The above diagram shows the names for all of the parts of a URI (where the scheme is HTTP or HTTPS).

DavidPostill
  • 162,382