Contribute to Docs Contribute to Docs

Request Helper

The RequestHelper provides information about the current HTTP request being executed.

Properties

Host
@WebApp.Request.Host

Gets the current hostname from the HTTP request.

Port
@WebApp.Request.Port

Gets the current port from the HTTP request.

Scheme
@WebApp.Request.Scheme

Gets the current scheme from the HTTP request.

Url
@WebApp.Request.Url

Gets the requested raw url before it has been rewritten by the Piranha middleware.