19 references to HttpParseResult
Microsoft.Net.Http.Headers (19)
EntityTagHeaderValue.cs (2)
60
else if ((HttpRuleParser.GetQuotedStringLength(tag, 0, out var length) !=
HttpParseResult
.Parsed) ||
249
if (HttpRuleParser.GetQuotedStringLength(input, current, out var tagLength) !=
HttpParseResult
.Parsed)
NameValueHeaderValue.cs (1)
466
if (HttpRuleParser.GetQuotedStringLength(input, startIndex, out valueLength) !=
HttpParseResult
.Parsed)
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;