24 types derived from PatternSegment
Microsoft.AspNetCore.Rewrite (24)
PatternSegments\ConditionMatchSegment.cs (1)
6internal sealed class ConditionMatchSegment : PatternSegment
PatternSegments\DateTimeSegment.cs (1)
8internal sealed class DateTimeSegment : PatternSegment
PatternSegments\HeaderSegment.cs (1)
6internal sealed class HeaderSegment : PatternSegment
PatternSegments\IISServerVariableSegment.cs (1)
8internal sealed class IISServerVariableSegment : PatternSegment
PatternSegments\IsHttpsModSegment.cs (1)
6internal sealed class IsHttpsModSegment : PatternSegment
PatternSegments\IsHttpsUrlSegment.cs (1)
6internal sealed class IsHttpsUrlSegment : PatternSegment
PatternSegments\IsIPV6Segment.cs (1)
8internal sealed class IsIPV6Segment : PatternSegment
PatternSegments\LiteralSegment.cs (1)
6internal sealed class LiteralSegment : PatternSegment
PatternSegments\LocalAddressSegment.cs (1)
6internal sealed class LocalAddressSegment : PatternSegment
PatternSegments\LocalPortSegment.cs (1)
8internal sealed class LocalPortSegment : PatternSegment
PatternSegments\QueryStringSegment.cs (1)
6internal sealed class QueryStringSegment : PatternSegment
PatternSegments\RemoteAddressSegment.cs (1)
6internal sealed class RemoteAddressSegment : PatternSegment
PatternSegments\RemotePortSegment.cs (1)
8internal sealed class RemotePortSegment : PatternSegment
PatternSegments\RequestFilenameSegment.cs (1)
6internal sealed class RequestFileNameSegment : PatternSegment
PatternSegments\RequestMethodSegment.cs (1)
6internal sealed class RequestMethodSegment : PatternSegment
PatternSegments\RewriteMapSegment.cs (1)
8internal sealed class RewriteMapSegment : PatternSegment
PatternSegments\RuleMatchSegment.cs (1)
8internal sealed class RuleMatchSegment : PatternSegment
PatternSegments\SchemeSegment.cs (1)
6internal sealed class SchemeSegment : PatternSegment
PatternSegments\ServerNameSegment.cs (1)
8internal sealed class ServerNameSegment : PatternSegment
PatternSegments\ServerProtocolSegment.cs (1)
8internal sealed class ServerProtocolSegment : PatternSegment
PatternSegments\ToLowerSegment.cs (1)
8internal sealed class ToLowerSegment : PatternSegment
PatternSegments\UrlDecodeSegment.cs (1)
8internal sealed class UrlDecodeSegment: PatternSegment
PatternSegments\UrlEncodeSegment.cs (1)
8internal sealed class UrlEncodeSegment : PatternSegment
PatternSegments\UrlSegment.cs (1)
9internal sealed class UrlSegment : PatternSegment
23 references to PatternSegment
Microsoft.AspNetCore.Rewrite (19)
ApacheModRewrite\ServerVariables.cs (1)
21public static PatternSegment FindServerVariable(string serverVariable, ParserContext context)
ApacheModRewrite\TestStringParser.cs (4)
30/// <returns>A new <see cref="Pattern"/>, containing a list of <see cref="PatternSegment"/></returns> 39var results = new List<PatternSegment>(); 91private static void ParseConditionParameter(ParserContext context, IList<PatternSegment> results) 148private static void ParseLiteral(ParserContext context, IList<PatternSegment> results)
IISUrlRewrite\InputParser.cs (5)
32/// <returns>A new <see cref="Pattern"/>, containing a list of <see cref="PatternSegment"/></returns> 44/// <returns>A new <see cref="Pattern"/>, containing a list of <see cref="PatternSegment"/></returns> 58var results = new List<PatternSegment>(); 85private void ParseParameter(ParserContext context, IList<PatternSegment> results, UriMatchPart uriMatchPart) 204private static void ParseLiteral(ParserContext context, IList<PatternSegment> results)
IISUrlRewrite\ServerVariables.cs (4)
12/// Returns the matching <see cref="PatternSegment"/> for the given <paramref name="serverVariable"/> 19/// <returns>The matching <see cref="PatternSegment"/></returns> 20public static PatternSegment FindServerVariable(string serverVariable, ParserContext context, UriMatchPart uriMatchPart, bool alwaysUseManagedServerVariables) 22Func<PatternSegment>? managedVariableThunk = default;
Pattern.cs (3)
8public IList<PatternSegment> PatternSegments { get; } 9public Pattern(IList<PatternSegment> patternSegments) 16foreach (var pattern in PatternSegments)
PatternSegments\IISServerVariableSegment.cs (2)
11private readonly Func<PatternSegment> _fallbackThunk; 13public IISServerVariableSegment(string variableName, Func<PatternSegment> fallbackThunk)
Microsoft.AspNetCore.Rewrite.Tests (4)
IISUrlRewrite\ServerVariableTests.cs (4)
34var serverVar = ServerVariables.FindServerVariable(variable, testParserContext, (UriMatchPart)uriMatchPart, true); 61var serverVar = ServerVariables.FindServerVariable(variable, testParserContext, (UriMatchPart)uriMatchPart, false); 109var serverVar = ServerVariables.FindServerVariable(variable, testParserContext, (UriMatchPart)uriMatchPart, true); 177var serverVar = ServerVariables.FindServerVariable("QUERY_STRING", testParserContext, UriMatchPart.Path, true);