104 references to
Microsoft.AspNetCore.Http (15)
src\aspnetcore\src\Http\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)
85
c = input
[
current];
96
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
98
var spaceOrTab = input
[
current + 2];
131
if (input
[
current] == '.')
138
c = input
[
current];
171
if (input
[
startIndex] != '\\')
178
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
227
if (input
[
startIndex] != openChar)
248
if (supportsNesting && (input
[
current] == openChar))
290
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)
85
c = input
[
current];
96
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
98
var spaceOrTab = input
[
current + 2];
131
if (input
[
current] == '.')
138
c = input
[
current];
171
if (input
[
startIndex] != '\\')
178
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
227
if (input
[
startIndex] != openChar)
248
if (supportsNesting && (input
[
current] == openChar))
290
if (input
[
current] == closeChar)
Microsoft.AspNetCore.Routing (10)
src\aspnetcore\src\Shared\HttpRuleParser.cs (10)
85
c = input
[
current];
96
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
98
var spaceOrTab = input
[
current + 2];
131
if (input
[
current] == '.')
138
c = input
[
current];
171
if (input
[
startIndex] != '\\')
178
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
227
if (input
[
startIndex] != openChar)
248
if (supportsNesting && (input
[
current] == openChar))
290
if (input
[
current] == closeChar)
Microsoft.Net.Http.Headers (66)
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 (18)
161
if ((current == input.Length) || (input
[
current] != ','))
174
while ((current < input.Length) && (input
[
current] == ','))
425
var ch = input
[
current];
442
ch = input
[
current];
456
ch = input
[
current];
605
return !StringSegment.IsNullOrEmpty(input) && input.Length >= 2 && input[0] == '"' && input
[
input.Length - 1] == '"';
633
if ((uint)nextIndex < (uint)segment.Length && segment
[
i] == '\\')
641
span[spanIndex] = segment
[
nextIndex];
646
span[spanIndex] = segment
[
i];
659
if (i < input.Length - 1 && input
[
i] == '\\')
667
if (input
[
i + 1] == '\\')
705
if (segment
[
i] == '\\' || segment
[
i] == '\"')
709
else if ((segment
[
i] <= 0x1F || segment
[
i] == 0x7F) && segment
[
i] != 0x09)
713
throw new FormatException($"Invalid control character '{segment
[
i]}' in input.");
715
span[spanIndex++] = segment
[
i];
MediaTypeHeaderValue.cs (2)
584
if ((current < input.Length) && (input
[
current] == ';'))
623
if ((current >= input.Length) || (input
[
current] != '/'))
NameValueHeaderValue.cs (2)
361
if ((current == input.Length) || (input
[
current] != '='))
416
if ((current == input.Length) || (input
[
current] != delimiter))
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\Http\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)
85
c = input
[
current];
96
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
98
var spaceOrTab = input
[
current + 2];
131
if (input
[
current] == '.')
138
c = input
[
current];
171
if (input
[
startIndex] != '\\')
178
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
227
if (input
[
startIndex] != openChar)
248
if (supportsNesting && (input
[
current] == openChar))
290
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] != '='))