RewriteContext Class

Definition

A context object for RewriteMiddleware

C#
public class RewriteContext
Inheritance
RewriteContext

Constructors

Properties

HttpContext

Gets and sets the HttpContext

Logger

Gets and sets the logger

Result

A shared result that is set appropriately by each rule for the next action that should be taken. See RuleResult

StaticFileProvider

Gets and sets the File Provider for file and directory checks.

Applies to

Product Versions
ASP.NET Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0