18 references to HttpParseResult
Microsoft.AspNetCore.Routing (18)
src\Shared\HttpRuleParser.cs (16)
155
internal static
HttpParseResult
GetQuotedStringLength(StringSegment input, int startIndex, out int length)
163
internal static
HttpParseResult
GetQuotedPairLength(StringSegment input, int startIndex, out int length)
170
return
HttpParseResult
.NotParsed;
177
return
HttpParseResult
.InvalidFormat;
182
return
HttpParseResult
.Parsed;
210
private static
HttpParseResult
GetExpressionLength(
226
return
HttpParseResult
.NotParsed;
235
(GetQuotedPairLength(input, current, out var quotedPairLength) ==
HttpParseResult
.Parsed))
253
return
HttpParseResult
.InvalidFormat;
257
var
nestedResult = GetExpressionLength(input, current, openChar, closeChar,
262
case
HttpParseResult
.Parsed:
266
case
HttpParseResult
.NotParsed:
272
case
HttpParseResult
.InvalidFormat:
274
return
HttpParseResult
.InvalidFormat;
290
return
HttpParseResult
.Parsed;
296
return
HttpParseResult
.InvalidFormat;
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (2)
564
var
result = HttpRuleParser.GetQuotedStringLength(input, current, out valueLength);
565
if (result !=
HttpParseResult
.Parsed)