110 references to
Microsoft.AspNetCore.Http (17)
src\Http\Shared\CookieHeaderParserShared.cs (7)
115if ((current == input.Length) || (input[current] != ',' && input[current] != ';')) 129while ((current < input.Length) && ((input[current] == ',') || (input[current] == ';'))) 195if (input[offset] == '"') 213if (offset == input.Length || input[offset] != '"') 233if (offset >= input.Length || input[offset] != '=')
src\Shared\HttpRuleParser.cs (10)
82c = input[current]; 93if ((current + 2 < input.Length) && (input[current + 1] == LF)) 95var spaceOrTab = input[current + 2]; 128if (input[current] == '.') 135c = input[current]; 168if (input[startIndex] != '\\') 175if ((startIndex + 2 > input.Length) || (input[startIndex + 1] > 127)) 224if (input[startIndex] != openChar) 245if (supportsNesting && (input[current] == openChar)) 287if (input[current] == closeChar)
Microsoft.AspNetCore.Http.Abstractions (3)
HostString.cs (3)
238if (port[i] < '0' || '9' < port[i]) 356if (index + 2 < value.Length && value[index + 1] == ':')
Microsoft.AspNetCore.Mvc.Core (10)
src\Shared\HttpRuleParser.cs (10)
82c = input[current]; 93if ((current + 2 < input.Length) && (input[current + 1] == LF)) 95var spaceOrTab = input[current + 2]; 128if (input[current] == '.') 135c = input[current]; 168if (input[startIndex] != '\\') 175if ((startIndex + 2 > input.Length) || (input[startIndex + 1] > 127)) 224if (input[startIndex] != openChar) 245if (supportsNesting && (input[current] == openChar)) 287if (input[current] == closeChar)
Microsoft.AspNetCore.Routing (10)
src\Shared\HttpRuleParser.cs (10)
82c = input[current]; 93if ((current + 2 < input.Length) && (input[current + 1] == LF)) 95var spaceOrTab = input[current + 2]; 128if (input[current] == '.') 135c = input[current]; 168if (input[startIndex] != '\\') 175if ((startIndex + 2 > input.Length) || (input[startIndex + 1] > 127)) 224if (input[startIndex] != openChar) 245if (supportsNesting && (input[current] == openChar)) 287if (input[current] == closeChar)
Microsoft.Net.Http.Headers (70)
CacheControlHeaderValue.cs (1)
723if ((valueString.Length < 3) || (valueString[0] != '\"') || (valueString[valueString.Length - 1] != '\"'))
ContentDispositionHeaderValue.cs (10)
299if ((current < input.Length) && (input[current] == ';')) 511var c = result[i]; 738decoded.Append(dataString[index]); // Normal safe character 770if ((pattern[index] == '%') && IsEscapedAscii(pattern[index + 1], pattern[index + 2])) 802if ((pattern[index] == '%') 805var ret = UnEscapeAscii(pattern[index + 1], pattern[index + 2]); 809return (byte)pattern[index++];
ContentRangeHeaderValue.cs (4)
270if ((current == input.Length) || (input[current] != '/')) 303if (input[current] == '*') 332if (input[current] == '*') 350if ((current == input.Length) || (input[current] != '-'))
EntityTagHeaderValue.cs (2)
225var firstChar = input[startIndex]; 239if ((current + 2 >= input.Length) || (input[current] != '/'))
HeaderUtilities.cs (20)
161if ((current == input.Length) || (input[current] != ',')) 174while ((current < input.Length) && (input[current] == ',')) 425var ch = input[current]; 442ch = input[current]; 456ch = input[current]; 605return !StringSegment.IsNullOrEmpty(input) && input.Length >= 2 && input[0] == '"' && input[input.Length - 1] == '"'; 633if ((uint)nextIndex < (uint)segment.Length && segment[i] == '\\') 641span[spanIndex] = segment[nextIndex]; 646span[spanIndex] = segment[i]; 659if (i < input.Length - 1 && input[i] == '\\') 667if (input[i + 1] == '\\') 704if (segment[i] == '\\' || segment[i] == '\"') 708else if ((segment[i] <= 0x1F || segment[i] == 0x7F) && segment[i] != 0x09) 712throw new FormatException($"Invalid control character '{segment[i]}' in input."); 714span[spanIndex++] = segment[i]; 724if (input[i] == '\\' || input[i] == '\"')
MediaTypeHeaderValue.cs (2)
584if ((current < input.Length) && (input[current] == ';')) 623if ((current >= input.Length) || (input[current] != '/'))
NameValueHeaderValue.cs (2)
361if ((current == input.Length) || (input[current] != '=')) 416if ((current == input.Length) || (input[current] != delimiter))
RangeConditionHeaderValue.cs (2)
153var firstChar = input[current]; 154var secondChar = input[current + 1];
RangeHeaderValue.cs (1)
176if ((current == input.Length) || (input[current] != '='))
RangeItemHeaderValue.cs (1)
183if ((current == input.Length) || (input[current] != '-'))
SetCookieHeaderValue.cs (4)
513if (input[offset] == ',') 518if (input[offset] != ';') 565if (input[offset] == '-') 673if (offset >= input.Length || input[offset] != '=')
src\Http\Shared\CookieHeaderParserShared.cs (7)
115if ((current == input.Length) || (input[current] != ',' && input[current] != ';')) 129while ((current < input.Length) && ((input[current] == ',') || (input[current] == ';'))) 195if (input[offset] == '"') 213if (offset == input.Length || input[offset] != '"') 233if (offset >= input.Length || input[offset] != '=')
src\Shared\HttpRuleParser.cs (10)
82c = input[current]; 93if ((current + 2 < input.Length) && (input[current + 1] == LF)) 95var spaceOrTab = input[current + 2]; 128if (input[current] == '.') 135c = input[current]; 168if (input[startIndex] != '\\') 175if ((startIndex + 2 > input.Length) || (input[startIndex + 1] > 127)) 224if (input[startIndex] != openChar) 245if (supportsNesting && (input[current] == openChar)) 287if (input[current] == closeChar)
StringWithQualityHeaderValue.cs (4)
209if ((current == input.Length) || (input[current] != ';')) 233if ((current == input.Length) || ((input[current] != 'q') && (input[current] != 'Q'))) 242if ((current == input.Length) || (input[current] != '='))