I need to know the URL (at least the server name) of an HttpRequest in my application.
www.request.com sends a request into my service (www.mywebserver.com).
Unfortunately, the Microsoft docs are less than adequate in explaining what the properties are for the HttpRequest.
Case in point:
HttpRequest Class (Microsoft.AspNetCore.Http) | Microsoft Docs
PathBase - Gets or sets the RequestPathBase.
Clicking on PathBase yields this tidbit of information:
Gets or sets the RequestPathBase.
Paraphrasing here: It's of type PathString, and it's the RequestPathBase.
It's circular if you don't know the terminology. Is that MY pathbase (where the request is going to) or the pathbase of the calling webserver (where the request came from).
Not helpful in the least.
I'd be happy with a specific answer to my question (how to get the URL of the calling website) but I'd be THRILLED with an answer that could point me to something that actually what all of the methods/properties/extension methods are and what they do.
What I have tried:
Scour the internet looking for examples that actually explain the HttpRequest object instead of examples that assume you already know what everything means.