32 references to HttpParseResult
System.Net.Http (32)
System\Net\Http\Headers\AltSvcHeaderParser.cs (4)
303
if (HttpRuleParser.GetQuotedStringLength(value, startIndex, out int quotedLength) !=
HttpParseResult
.Parsed)
308
Debug.Assert(value[startIndex] == '"' && value[startIndex + quotedLength - 1] == '"', $"{nameof(HttpRuleParser.GetQuotedStringLength)} should return {nameof(
HttpParseResult
.NotParsed)} if the opening/closing quotes are missing.");
404
if (HttpRuleParser.GetQuotedStringLength(value, startIndex, out int quotedLength) ==
HttpParseResult
.Parsed)
466
if (HttpRuleParser.GetQuotedStringLength(value, startIndex, out int quotedLength) ==
HttpParseResult
.Parsed)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (1)
204
HttpParseResult
.Parsed)
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
123
if (current == input.Length || HttpRuleParser.GetQuotedStringLength(input, current, out int tagLength) !=
HttpParseResult
.Parsed)
System\Net\Http\Headers\HeaderUtilities.cs (2)
157
if ((HttpRuleParser.GetCommentLength(value, 0, out int length) !=
HttpParseResult
.Parsed) ||
168
if ((HttpRuleParser.GetQuotedStringLength(value, 0, out int length) !=
HttpParseResult
.Parsed) ||
System\Net\Http\Headers\NameValueHeaderValue.cs (3)
337
if (HttpRuleParser.GetQuotedStringLength(input, startIndex, out valueLength) !=
HttpParseResult
.Parsed)
368
HttpParseResult
parseResult = HttpRuleParser.GetQuotedStringLength(value, 0, out int valueLength);
369
if (parseResult !=
HttpParseResult
.Parsed || valueLength != value.Length)
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
134
if (HttpRuleParser.GetCommentLength(input, current, out commentLength) !=
HttpParseResult
.Parsed)
System\Net\Http\Headers\ViaHeaderValue.cs (1)
175
if (HttpRuleParser.GetCommentLength(input, current, out int commentLength) !=
HttpParseResult
.Parsed)
System\Net\Http\Headers\WarningHeaderValue.cs (1)
162
if (HttpRuleParser.GetQuotedStringLength(input, current, out int textLength) !=
HttpParseResult
.Parsed)
System\Net\Http\HttpRuleParser.cs (18)
171
internal static
HttpParseResult
GetCommentLength(string input, int startIndex, out int length)
176
internal static
HttpParseResult
GetQuotedStringLength(string input, int startIndex, out int length)
183
internal static
HttpParseResult
GetQuotedPairLength(string input, int startIndex, out int length)
192
return
HttpParseResult
.NotParsed;
199
return
HttpParseResult
.InvalidFormat;
204
return
HttpParseResult
.Parsed;
218
private static
HttpParseResult
GetExpressionLength(string input, int startIndex, char openChar,
228
return
HttpParseResult
.NotParsed;
238
(GetQuotedPairLength(input, current, out quotedPairLength) ==
HttpParseResult
.Parsed))
251
return
HttpParseResult
.InvalidFormat;
260
return
HttpParseResult
.InvalidFormat;
264
HttpParseResult
nestedResult = GetExpressionLength(input, current, openChar, closeChar,
269
case
HttpParseResult
.Parsed:
273
case
HttpParseResult
.NotParsed:
279
case
HttpParseResult
.InvalidFormat:
281
return
HttpParseResult
.InvalidFormat;
295
return
HttpParseResult
.Parsed;
301
return
HttpParseResult
.InvalidFormat;