Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Web context

Alexanderius edited this page Jun 30, 2019 · 2 revisions

Web context

With WebContext class you can access raw Microsoft OWIN context classes and some current request data:

  • Route - Current web-site route, for example: "/" or "/user/delete/15"
  • SiteUrl - current site URL, for example: http://mysite.com or http://localhost/mysite/;
  • VirtualPath - current site virtual path, for example: /mysite, if current site is places in virtual directory: http://localhost/mysite/;
  • Context - IOwinContext context;
  • Request - IOwinRequest;
  • Response - IOwinResponse;
  • Query - IReadableStringCollection which contains parsed query string from current request;
  • Form - IFormCollection which contains parsed HTTP POST form data from current request;
  • IsAjax - property which indicates what current request is AJAX request;

<< Previous page Next page >>

Clone this wiki locally