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?

Alexander Mills
  • 249
  • 3
  • 15

1 Answers1

2

what are the best names for the different entities?

         userinfo       host      port
          ┌──┴───┐ ┌──────┴──────┐ ┌┴┐
  https://[email protected]: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
  • 153,128
  • 77
  • 353
  • 394