105 references to
Microsoft.AspNetCore.Http (15)
parent\parent\Shared\CookieHeaderParserShared.cs (5)
137
if (current == input.Length || input
[
current] != ';')
151
while (current < input.Length && input
[
current] == ';')
229
if (input
[
offset] == '"')
247
if (offset == input.Length || input
[
offset] != '"')
267
if (offset >= input.Length || input
[
offset] != '=')
src\aspnetcore\src\Shared\HttpRuleParser.cs (10)
86
c = input
[
current];
97
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
99
var spaceOrTab = input
[
current + 2];
161
if (input
[
current] == '.')
168
c = input
[
current];
201
if (input
[
startIndex] != '\\')
208
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
257
if (input
[
startIndex] != openChar)
278
if (supportsNesting && (input
[
current] == openChar))
320
if (input
[
current] == closeChar)
Microsoft.AspNetCore.Http.Abstractions (3)
HostString.cs (3)
238
if (port
[
i] < '0' || '9' < port
[
i])
365
if (index + 2 < value.Length && value
[
index + 1] == ':')
Microsoft.AspNetCore.Mvc.Core (10)
src\aspnetcore\src\Shared\HttpRuleParser.cs (10)
86
c = input
[
current];
97
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
99
var spaceOrTab = input
[
current + 2];
161
if (input
[
current] == '.')
168
c = input
[
current];
201
if (input
[
startIndex] != '\\')
208
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
257
if (input
[
startIndex] != openChar)
278
if (supportsNesting && (input
[
current] == openChar))
320
if (input
[
current] == closeChar)
Microsoft.AspNetCore.Routing (10)
src\aspnetcore\src\Shared\HttpRuleParser.cs (10)
86
c = input
[
current];
97
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
99
var spaceOrTab = input
[
current + 2];
161
if (input
[
current] == '.')
168
c = input
[
current];
201
if (input
[
startIndex] != '\\')
208
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
257
if (input
[
startIndex] != openChar)
278
if (supportsNesting && (input
[
current] == openChar))
320
if (input
[
current] == closeChar)
Microsoft.Net.Http.Headers (67)
CacheControlHeaderValue.cs (1)
725
if ((valueString.Length < 3) || (valueString[0] != '\"') || (valueString
[
valueString.Length - 1] != '\"'))
ContentDispositionHeaderValue.cs (10)
298
if ((current < input.Length) && (input
[
current] == ';'))
510
var c = result
[
i];
737
decoded.Append(dataString
[
index]); // Normal safe character
769
if ((pattern
[
index] == '%') && IsEscapedAscii(pattern
[
index + 1], pattern
[
index + 2]))
801
if ((pattern
[
index] == '%')
804
var ret = UnEscapeAscii(pattern
[
index + 1], pattern
[
index + 2]);
808
return (byte)pattern
[
index++];
ContentRangeHeaderValue.cs (4)
270
if ((current == input.Length) || (input
[
current] != '/'))
303
if (input
[
current] == '*')
332
if (input
[
current] == '*')
350
if ((current == input.Length) || (input
[
current] != '-'))
EntityTagHeaderValue.cs (2)
225
var firstChar = input
[
startIndex];
239
if ((current + 2 >= input.Length) || (input
[
current] != '/'))
HeaderUtilities.cs (19)
162
if ((current == input.Length) || (input
[
current] != ','))
173
if (skipEmptyValues && (current < input.Length) && (input
[
current] == ','))
186
Debug.Assert(input
[
current] == ',');
431
var ch = input
[
current];
448
ch = input
[
current];
462
ch = input
[
current];
611
return !StringSegment.IsNullOrEmpty(input) && input.Length >= 2 && input[0] == '"' && input
[
input.Length - 1] == '"';
639
if ((uint)nextIndex < (uint)segment.Length && segment
[
i] == '\\')
647
span[spanIndex] = segment
[
nextIndex];
652
span[spanIndex] = segment
[
i];
665
if (i < input.Length - 1 && input
[
i] == '\\')
673
if (input
[
i + 1] == '\\')
711
if (segment
[
i] == '\\' || segment
[
i] == '\"')
715
else if ((segment
[
i] <= 0x1F || segment
[
i] == 0x7F) && segment
[
i] != 0x09)
719
throw new FormatException($"Invalid control character '{segment
[
i]}' in input.");
721
span[spanIndex++] = segment
[
i];
MediaTypeHeaderValue.cs (2)
589
if ((current < input.Length) && (input
[
current] == ';'))
628
if ((current >= input.Length) || (input
[
current] != '/'))
NameValueHeaderValue.cs (2)
361
if ((current == input.Length) || (input
[
current] != '='))
416
if ((current == input.Length) || (input
[
current] != delimiter))
parent\parent\Shared\CookieHeaderParserShared.cs (5)
137
if (current == input.Length || input
[
current] != ';')
151
while (current < input.Length && input
[
current] == ';')
229
if (input
[
offset] == '"')
247
if (offset == input.Length || input
[
offset] != '"')
267
if (offset >= input.Length || input
[
offset] != '=')
RangeConditionHeaderValue.cs (2)
153
var firstChar = input
[
current];
154
var secondChar = input
[
current + 1];
RangeHeaderValue.cs (1)
176
if ((current == input.Length) || (input
[
current] != '='))
RangeItemHeaderValue.cs (1)
183
if ((current == input.Length) || (input
[
current] != '-'))
SetCookieHeaderValue.cs (4)
513
if (input
[
offset] == ',')
518
if (input
[
offset] != ';')
565
if (input
[
offset] == '-')
683
if (offset >= input.Length || input
[
offset] != '=')
src\aspnetcore\src\Shared\HttpRuleParser.cs (10)
86
c = input
[
current];
97
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
99
var spaceOrTab = input
[
current + 2];
161
if (input
[
current] == '.')
168
c = input
[
current];
201
if (input
[
startIndex] != '\\')
208
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
257
if (input
[
startIndex] != openChar)
278
if (supportsNesting && (input
[
current] == openChar))
320
if (input
[
current] == closeChar)
StringWithQualityHeaderValue.cs (4)
209
if ((current == input.Length) || (input
[
current] != ';'))
233
if ((current == input.Length) || ((input
[
current] != 'q') && (input
[
current] != 'Q')))
242
if ((current == input.Length) || (input
[
current] != '='))