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