Skip to content

denis-goncharenko/HttpRequestExtensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HttpRequestExtensions

The HttpRequestExtensions is a Nuget Package for getting absolute or relative url. This library return absolute and relative url from HttpRequest.

Usages

Add using

  using HttpRequestExtensions;

Examples

Get Absolute Uri

    HttpContext.Request.GetAbsoluteUri();

or

    HttpContextExtensions.GetAbsoluteUri(HttpContext.Request);

Get Absolute Uri with Query String

    HttpContext.Request.GetAbsoluteUriWithQueryString();

or

    HttpContextExtensions.GetAbsoluteUriWithQueryString(HttpContext.Request);

Get Relative Path with Query String

    HttpContext.Request.GetRelativePathWithQueryString();

or

    HttpContextExtensions.GetRelativePathWithQueryString(HttpContext.Request);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages