Check out example codes for "c# Request.Url". It will help you in understanding the concepts better.

Code Example 1

string url = HttpContext.Current.Request.Url.AbsoluteUri;
// http://localhost:1302/TESTERS/Default6.aspx

string path = HttpContext.Current.Request.Url.AbsolutePath;
// /TESTERS/Default6.aspx

string host = HttpContext.Current.Request.Url.Host;
// localhost

Learn ReactJs, React Native from akashmittal.com