20 references to HttpParseResult
Microsoft.AspNetCore.Mvc.Core (20)
Formatters\MediaType.cs (2)
412var result = HttpRuleParser.GetQuotedStringLength(input, current, out valueLength); 413if (result != 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;
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (2)
564var result = HttpRuleParser.GetQuotedStringLength(input, current, out valueLength); 565if (result != HttpParseResult.Parsed)