19 references to HttpParseResult
Microsoft.Net.Http.Headers (19)
EntityTagHeaderValue.cs (2)
60else if ((HttpRuleParser.GetQuotedStringLength(tag, 0, out var length) != HttpParseResult.Parsed) || 249if (HttpRuleParser.GetQuotedStringLength(input, current, out var tagLength) != HttpParseResult.Parsed)
NameValueHeaderValue.cs (1)
466if (HttpRuleParser.GetQuotedStringLength(input, startIndex, out valueLength) != HttpParseResult.Parsed)
src\Shared\HttpRuleParser.cs (16)
155internal static HttpParseResult GetQuotedStringLength(StringSegment input, int startIndex, out int length) 163internal static HttpParseResult GetQuotedPairLength(StringSegment input, int startIndex, out int length) 170return HttpParseResult.NotParsed; 177return HttpParseResult.InvalidFormat; 182return HttpParseResult.Parsed; 210private static HttpParseResult GetExpressionLength( 226return HttpParseResult.NotParsed; 235(GetQuotedPairLength(input, current, out var quotedPairLength) == HttpParseResult.Parsed)) 253return HttpParseResult.InvalidFormat; 257var nestedResult = GetExpressionLength(input, current, openChar, closeChar, 262case HttpParseResult.Parsed: 266case HttpParseResult.NotParsed: 272case HttpParseResult.InvalidFormat: 274return HttpParseResult.InvalidFormat; 290return HttpParseResult.Parsed; 296return HttpParseResult.InvalidFormat;